Gang Wang
Gang Wang
I could repro this issue using Docker Desktop with Windows container on Windows. Note that this issue could not be reproduced with Linux container. It may be duplicated with https://github.com/dotnet/msbuild/issues/7946...
`mcr.microsoft.com/dotnet/sdk:7.0` or later has the fix and works well as build.
It's easy to reproduce with the provided solution https://github.com/fforjan/CSProjectAndVcxprojReferences. As the issue mentioned, I reproduced and attached binlogs [binlogs.zip](https://github.com/dotnet/msbuild/files/14664682/binlogs.zip). 1. Clone the repo and open the solution using VS 17.9.2....
@rainersigwald can you help to take a look? Note that there are different problems when building with VS and msbuild.exe.
After observing 9 runs that failed with this test, the failure only happened to the following test cases. From the output logs attached inline, it looks like within 30 seconds...
Though this issue might be resolved in the fix above, I had some information about trying to debug the test running on linux remotely from VS on Windows. I tried...
@xtmq do you use to [Microsoft.Build.Locator](https://learn.microsoft.com/en-us/visualstudio/msbuild/find-and-use-msbuild-versions?view=vs-2022#use-microsoftbuildlocator) to register the instance of .NET SDK.? From the code snippet in the issue description, I couldn't know about it. And what's the version...
@xtmq To get MSBuild work, besides MSBuild assemblies it also requires importing necessary props and targets files from SDK. Can you provide a minimal project that includes how it references...
@rwx788 Thanks for quick response! > To get MSBuild work, besides MSBuild assemblies it also requires importing necessary props and targets files from SDK. Can you provide a minimal project...