Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.NET Standard 2.0: dotnet build fails #1307

Closed
roeb opened this issue Oct 9, 2017 · 2 comments

Comments

@roeb
Copy link

commented Oct 9, 2017

Hi all,

I have a problem to use GitVersionTask (Version="4.0.0-beta0012") in a new simple and clean .netstandard2.0 library. The project has only a User class with some properties and a nuget reference to GitversionTask in version 4.0.0-beta0012.

If i run the rebuild command from Visual Studio 2017, it works fine. But when I try to run "dotnet build" in the console, it throws the following error:

C:\Users\rme\.nuget\packages\gitversiontask\4.0.0-beta0012\build\GitVersionTask.targets(49,5): error MSB4062: The "GitVersionTask.WriteVersionInfoToBuildLog" task could not be loaded from the assembly C:\Users\rme\.nuget\packages\gitversiontask\4.0.0-beta0012\build\GitVersionTask.dll. Could not load file or assembly 'Microsoft.Build.Utilities.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL'. The system cannot find the file specified. 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. [C:\Learning\GitHub\GitVersionTaskBuildIssue\GitVersionTaskBuildIssue\GitVersionTaskBuildIssue.csproj]

You can find the simple project on GitHub. Has anyone any idea or solution for the problem?

@dazinator

This comment has been minimized.

Copy link
Member

commented Oct 11, 2017

Adding support for dotnet cli builds is currently in progress. Follow pr #1269 for updates.

@dazinator

This comment has been minimized.

Copy link
Member

commented Nov 2, 2017

Closing as dupe of #1175

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.