Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Unable to build UWP project docs #10379

Open
Take-A-Byte opened this issue Nov 11, 2024 · 0 comments
Open

[Bug] Unable to build UWP project docs #10379

Take-A-Byte opened this issue Nov 11, 2024 · 0 comments
Labels
bug A bug to fix

Comments

@Take-A-Byte
Copy link

Take-A-Byte commented Nov 11, 2024

Describe the bug
When I run docfx for a UWP project, I get following error:

warning: [Failure] Msbuild failed when processing the file '\xxx.csproj' with message: 
The imported project "C:\Program Files\dotnet\sdk\8.0.204\Microsoft\WindowsXaml\v16.0\Microsoft.Windows.UI.Xaml.CSharp.targets" 
was not found.
Confirm that the expression in the Import declaration 
"C:\Program Files\dotnet\sdk\8.0.204\Microsoft\WindowsXaml\v16.0\Microsoft.Windows.UI.Xaml.CSharp.targets" 
is correct, and that the file exists on disk.  xxx.csproj

To Reproduce
Steps to reproduce the behavior:

  1. Create a UWP project
  2. docfx init
  3. run docfx command

Expected behavior
documents are generated

Context (please complete the following information):

  • OS: Windows
  • Docfx version: [e.g. 2.59.0] - 2.57.2

Additional context
For some reason docfx is building project with .NET 8 which should not be the case for UWP.

@Take-A-Byte Take-A-Byte added the bug A bug to fix label Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug to fix
Projects
None yet
Development

No branches or pull requests

1 participant