最近升级DNN的模块到支持新版本的开发,具体的步骤如下。修改csproj文件:
1、将
2、将
3、修改Import:
将
1 | <Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets" /> |
修改为
1 | <Import Project="..\DNNArticle\packages\MSBuildTasks.1.5.0.235\build\MSBuildTasks.targets" Condition="Exists('..\DNNArticle\packages\MSBuildTasks.1.5.0.235\build\MSBuildTasks.targets')" /> |
拷贝packages.config:
1 | <?xml version="1.0" encoding="utf-8"?> |
修改ModulePackage.targets:
1、增加
2、 DestinationFolder=”packages/“修改为DestinationFolder=”mypackages/
修改MSBuild.Community.Tasks.Targets
将
1 | <MSBuildCommunityTasksLib>$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Tasks.dll</MSBuildCommunityTasksLib> |
修改为
1 | <MSBuildCommunityTasksLib>$(SolutionDir)\packages\MSBuildTasks.1.5.0.235\tools\MSBuild.Community.Tasks.dll</MSBuildCommunityTasksLib> |