question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Building a project between two different SDKs fails hard if you reuse nodes

See original GitHub issue

Steps to reproduce

  1. Build a project via msbuild with 2.1.300-preview2-008324
  2. 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:closed
  • Created 5 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
livarcocccommented, Apr 19, 2018

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found