Open DemianTinkiel opened 5 years ago
dotnet.log
adding logs.
Also did dotnet restore --packages .\packages --force
to see if I could force download to a specific location but it produces nothing
Restore doesn’t run as part of msbuild unless you ask for it to be.
Can you try: Msbuild /restore Which will do a restore and then run build (/t:build is default), as two separate steps, which is ideal, because restore can change how build works.
Hi @rrelyea thanks for the answer. I tried msbuild /restore and gives me the same behavior: restore task says ok, build fails on missing assembly for dependency
Could this be something related to #7956, i.e incompatibility between mono & sdk?
Team,
Any updates on this please? PackageReferences included in .wapproj (MSIX Project) doesn't seem to work in Linux pipeline due to this. it is unable to restore <PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.22621.1" PrivateAssets="all" />
therefore build fails. Any help is much appreciated.
A sample solution, that we can unzip and try for ourselves, would make it much easier for us to investigate. Customers using the .NET SDK on Linux is not uncommon, especially with the popularity of Docker, and most customers are not reporting problems, so some effort is needed to isolate the problem.
Your comment about wapproj is helpful, though we'd still need to figure out how to create one of those project files, then test it works on Windows before we can test on Linux. If you could provide us with a zip, then that reduces the friction to investigate.
A sample solution, that we can unzip and try for ourselves, would make it much easier for us to investigate. Customers using the .NET SDK on Linux is not uncommon, especially with the popularity of Docker, and most customers are not reporting problems, so some effort is needed to isolate the problem.
Your comment about wapproj is helpful, though we'd still need to figure out how to create one of those project files, then test it works on Windows before we can test on Linux. If you could provide us with a zip, then that reduces the friction to investigate.
@zivkan Thanks for the prompt reply. I think I misunderstood few things there. It's not the package restore fails in Linux build. In the MSIX.wapproj
seems dotnet build
fails to restore since this packaging is done via MSBUILD. Hence, the build fails with restore when the solution is run with dotnet build
. Related to this.
NuGet product used NuGet.exe | dotnet.exe NuGet version (x.x.x.xxx): 4.8.2.5835 dotnet.exe --version (if appropriate): 2.2.203 OS version (i.e. win10 v1607 (14393.321)): Ubuntu 18.04 LTS
Detailed repro steps so we can see the same problem
I have a project where I define a build task as
and the following dependencies define in the .csproj
doing
dotnet resore
ornuget restore
says all ok but when I domsbuild
I getMono version: