我在我的項目中使用了postharp。當我正在嘗試構建解決方案時,我遇到了以下錯誤。 「The "PostSharp.MSBuild.PostSharp30DetectNativeFrameworkVersion" task could not be loaded from the assembly C:\ProgramData\PostSharp\3.1.49\bin.Release\PostSharp.MSBuild.v3.1.49.Release.dll. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
」確認<UsingTask>聲明是正確的?
如何解決這個問題?
謝謝
PostSharp可能未被正確添加到項目中。您可以嘗試重新安裝PostSharp NuGet軟件包。還要檢查* .csproj文件中的程序集引用和「導入」元素是否指向相同版本的PostSharp。 – AlexD