Building a project between two different SDKs fails hard if you reuse nodes
See original GitHub issueSteps to reproduce
- Build a project via msbuild with 2.1.300-preview2-008324
- Before msbuild nodes shutdown, build a project via msbuild with 2.1.300-preview2-008533
Expected behavior
No errors
Actual behavior
Actual:
C:\Program Files\dotnet\sdk\2.1.300-preview2-008533\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInfer
ence.targets(134,5): error MSB4062: The "ShowPreviewMessage" task could not be loaded from the assembly C:\Program File
s\dotnet\sdk\2.1.300-preview2-008533\Sdks\Microsoft.NET.Sdk\targets\..\tools\net46/Microsoft.NET.Build.Tasks.dll. Conf
irm 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. [E:\project-system2\src\Microsoft.Visual
Studio.ProjectSystem.VisualBasic.UnitTests\Microsoft.VisualStudio.ProjectSystem.VisualBasic.UnitTests.csproj]
Environment data
dotnet --info
output:
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
Reliably generating C# code in .NET Core 2.x csproj project?
I 'm running .NET Core 2.0.3 on Linux. My Docker build containers use the microsoft/dotnet:2.0-sdk image; I can replicate the issue ...
Read more >Getting out of memory exception while creating multiple ...
I am getting “java.lang.OutOfMemoryError: Java heap space” error in my project Along with multiple warnings like this
Read more >What is a software development kit (SDK)?
Software development kits help developers build apps for diverse platforms. Learn how SDKs work, how they differ from APIs and the benefits of...
Read more >Organizing Projects & Stacks
An overview of best practices when organizing and structuring cloud projects and stacks.
Read more >Performance Improvements in .NET 7
NET 7 is fast. Really fast. This post deep-dives into hundreds of performance improvements that contributed to that reality.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@nguerrera and I were just talking about this. We used to version assemblies out of the SDK for every build. It seems like we regressed with the infra-changes we did moving to repotoolset.
@tannergooding can you investigate this. I will mark this for 2.1.3xx and will consider taking it to shiproom.
https://github.com/Microsoft/msbuild/issues/3572