当我试图通过ant.I构建项目时,我在以下声明之后出现了异常:
<Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets" />例外情况:
error MSB4062: The "MSBuild.Community.Tasks.Version" task could not be loaded from the assembly \MSBuild.Community.Tasks.dll)). Could not load file or assembly file:///C:\MSBuild.Community.Tasks.dll))' or one of its dependencies.我的项目需要3.5版。我的Msbuild.Community.Tasks.dll是第4版。
我不明白为何会出现这个问题。
发布于 2014-07-24 09:38:55
也许这条路有问题。试着像这样改变。
<PropertyGroup>
<MSBuildCommunityTasksPath>.</MSBuildCommunityTasksPath>
</PropertyGroup>
<Import Project="packages\MSBuildTasks.yourversion\tools\MSBuild.Community.Tasks.Targets" />发布于 2014-07-24 09:12:26
https://stackoverflow.com/questions/24929335
复制相似问题