2017-08-10 23 views
1

我想在macOS Sierra上使用postsharp 5.0.31構建一個.netcore 1.1控制檯項目,但是當我運行命令行:我有問題在macOS Sierra上使用postsharp 5.0.31和.net核心1.1,我得到一個構建錯誤

DOTNET建立

構建失敗,顯示下輸出;

MacBook-Pro:PostsharpSample userx$ dotnet build 
Microsoft (R) Build Engine version 15.1.548.43366 
Copyright (C) Microsoft Corporation. All rights reserved. 

PostsharpSample -> /Users/userx/Documents/VSCode/netcore/PostsharpSample/bin/Debug/netcoreapp1.1/PostsharpSample.dll/Users/userx/.nuget/packages/postsharp/5.0.31/build/PostSharp.targets(564,5): error MSB4062: 
The "PostSharp.MSBuild.PostSharp30ChangeAppConfig" task could not be loaded from the assembly /Users/userx/.nuget/packages/postsharp/5.0.31/build/PostSharp.MSBuild.v5.0.31.Release.dll. 
Could not load file or assembly 'Microsoft.Build.Utilities.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. 
The system cannot find the file specified. [/Users/userx/Documents/VSCode/netcore/PostsharpSample/PostsharpSample.csproj]/Users/userx/.nuget/packages/postsharp/5.0.31/build/PostSharp.targets(564,5): 
error MSB4062: 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. [/Users/userx/Documents/VSCode/netcore/PostsharpSample/PostsharpSample.csproj] 

它可以使用.netcore和Postsharp在MacOS塞拉利昂?

我需要特定的配置嗎?

回答