dotnet build UWP.sln | error MSB4019 Microsoft.Windows.UI.Xaml.CSharp.targets not found
- Dominant language
- PowerShell
- Stars
- 22k
- Forks
- 4.9k
- Avg merge
- 5d 5h
- Merged PRs (30d)
- 29
Description
I have an `uwp` project in my solution. I actually get the following error when trying to build it via `dotnet build`:
>D:\MyFooProject.csproj(184,3): error MSB4019: Das importierte Projekt "C:\Program Files\dotnet\sdk\5.0.100-preview.5.20279.10\Microsoft\WindowsXaml\v16.0\Microsoft.Windows.UI.Xaml.CSharp.targets" wurde nicht gefunden. Stellen Sie sicher, dass der Ausdruck in der Import-Deklaration "C:\Program Files\dotnet\sdk\5.0.100-preview.5.20279.10\\Microsoft\WindowsXaml\v16.0\Microsoft.Windows.UI.Xaml.CSharp.targets" richtig ist und dass die Datei auf dem Datenträger vorhanden ist.
The `csproj` entry:
``
As already discussed (https://stackoverflow.com/questions/45041972/microsoft-windows-ui-xaml-csharp-targets-missing-on-ci-server), it would be possible to build if I copy `C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\WindowsXaml\v16.0\Microsoft.Windows.UI.Xaml.CSharp.Targets` on my ci server.
Is there something wrong with my plans or does dotnet currently not support uwp? Because it is not possible to create an uwp project via `dotnet new`.
Contributor guide
Assessment
This issue has not been assessed yet.