Forgind

Results 200 comments of Forgind

I tried this with 17.2.0.17804, and dotnet build /t:Rebuild failed with the exception above, but so did dotnet build /t:Build and dotnet build. I looked at binlogs for both cases,...

It looks like in the success case, we're passing on extra parameter to the csc task: obj\Debug\netstandard2.0\NuGet\D219894B6304F8B67F0125410EAFB780514626B1\StackTraceParser.Source\1.3.1\StackTraceParser/StackTraceParser.cs Looking at [roslyn/Microsoft.CSharp.Core.targets at 079474b518dc3684408b1d3f848113d901b0b0c9 · dotnet/roslyn (github.com)](https://github.com/dotnet/roslyn/blob/079474b518dc3684408b1d3f848113d901b0b0c9/src/Compilers/Core/MSBuildTask/Microsoft.CSharp.Core.targets), it actually sounds like csc...

Great repro, by the way, @alexandersorokin. Very helpful in pointing me to the underlying issue.

This seems like an SDK concept: https://github.com/dotnet/sdk/blame/main/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.GenerateSupportedRuntime.targets Moving there.

What version of MSBuildLocator are you using? How are you referencing it? I have a project (targeting net6.0, but it also worked when targeting other frameworks) with , and it...

You're right—IsRegistered is more like "was once registered" than "is currently registered." Can you explain why you need to call Unregister in the first place?

Makes sense. I think all you'd have to do to resolve this is add `s_registeredHandler = null;` to Unregister(), but I'm reluctant to actually do that, partially because s_registeredHandler caches...

I could expose instance as a parameter as I have ContainsRoslynCompiler exposed here. Would you want the non-VS versions to return null for that?

https://github.com/dotnet/msbuild/pull/7991 seems to be updating to arcade 7. Close this?

Are there uses for this outside people who work on dev tools? It doesn't solve all your problems, but you can identify an incremental build by the number of projects...