You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The bug occurs when building the solution using dotnet build on a NetCore3.1 project solution like this: dotnet build Serilog.Sinks.AmazonS3.sln -c Release.
Error message:
C:\Users\test\.nuget\packages\gitversiontask\5.2.4\build\GitVersionTask.targets(10,9): error MSB4018: Unexpected error in the WriteVersionInfoToBuildLog task. [C:\Users\test\Git\Serilog.Sinks.AmazonS3\Serilog.Sinks.AmazonS3\Serilog.Sinks.AmazonS3\Serilog.Sinks.AmazonS3.csproj]
C:\Users\test\.nuget\packages\gitversiontask\5.2.4\build\GitVersionTask.targets(10,9): error MSB4018: System.IO.FileNotFoundException: Could not load file or assembly 'GitVersionTask.MsBuild, Version=5.2.4.0, Culture=neutral, PublicKeyToken=null'. The system can not find the stated file. [C:\Users\test\Git\Serilog.Sinks.AmazonS3\Serilog.Sinks.AmazonS3\Serilog.Sinks.AmazonS3\Serilog.Sinks.AmazonS3.csproj]
C:\Users\test\.nuget\packages\gitversiontask\5.2.4\build\GitVersionTask.targets(10,9): error MSB4018: File name: 'GitVersionTask.MsBuild, Version=5.2.4.0, Culture=neutral, PublicKeyToken=null' [C:\Users\test\Git\Serilog.Sinks.AmazonS3\Serilog.Sinks.AmazonS3\Serilog.Sinks.AmazonS3\Serilog.Sinks.AmazonS3.csproj]
Edit: This worked properly with version 5.1.3 before. Edit 2: There is no error when built with Visual Studio.
Expected Behavior
The build should succeed without this strange error.
Actual Behavior
Broken build.
Possible Fix
No idea, it looks like something went wrong with the GitVersionTask nuget package.
Describe the bug
The bug occurs when building the solution using dotnet build on a NetCore3.1 project solution like this:
dotnet build Serilog.Sinks.AmazonS3.sln -c Release
.Error message:
Edit: This worked properly with version 5.1.3 before.
Edit 2: There is no error when built with Visual Studio.
Expected Behavior
The build should succeed without this strange error.
Actual Behavior
Broken build.
Possible Fix
No idea, it looks like something went wrong with the GitVersionTask nuget package.
Steps to Reproduce
You can use my project https://github.com/SeppPenner/Serilog.Sinks.AmazonS3 as example. This should work properly if you have the SDK version 3.1.200 installed. Otherwise check the global.json file and adjust it.
Context
I have no idea where it comes from.
Your Environment
The text was updated successfully, but these errors were encountered: