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

Building testfx source code with VSCode / C# Dev Kit has issue with ExpandPriContent #1909

Open
fforjan opened this issue Dec 8, 2023 · 6 comments

Comments

@fforjan
Copy link

fforjan commented Dec 8, 2023

When cloning the repository and trying to build within VSCode/C# DevKit, i'm getting this issue :

The "Microsoft.Build.Packaging.Pri.Tasks.ExpandPriContent" task could not be loaded from the assembly C:\Program Files\dotnet\sdk\8.0.100\Microsoft\VisualStudio\v17.0\AppxPackage\Microsoft.Build.Packaging.Pri.Tasks.dll. Could not load file or assembly 'C:\Program Files\dotnet\sdk\8.0.100\Microsoft\VisualStudio\v17.0\AppxPackage\Microsoft.Build.Packaging.Pri.Tasks.dll'. The system cannot find the path specified. Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. [C:\git\testfx\src\TestFramework\TestFramework.Extensions\TestFramework.Extensions.csproj::TargetFramework=net6.0-windows10.0.18362.0]

I found a workaround here : microsoft/WindowsAppSDK#3548 (comment)

And if added to Directory.Build.Local.Props, I can build and compile within VScode...

I would be happy to contribute (and update the documentation to use VSCode for building) to this but not sure exactly if you already have a plan/fix for this on your side ?

@Evangelink
Copy link
Member

Hi @fforjan,

I am only using VSCode as some advanced notepad so I have to admit I have never tried to build or run tests from there. Happy to get some contribution if you are still willing to help.

Just want to confirm you only have some trouble from VSCode but CLI is working fine?!

@Evangelink Evangelink added the Help-Wanted The issue is up-for-grabs, and can be claimed by commenting label Dec 11, 2023
@Evangelink Evangelink added Type: Docs and removed Help-Wanted The issue is up-for-grabs, and can be claimed by commenting labels Dec 11, 2023
@fforjan
Copy link
Author

fforjan commented Dec 17, 2023

@Evangelink I have the same issue in command line, when using dotnet build

image

@Evangelink
Copy link
Member

Oh yeah I remember having seen this issue when I took over but I don't see it documented... Could you try to run the script https://github.com/microsoft/testfx/blob/main/eng/Install-WindowsSDK.ps1. If that's not working then it's a missing workload/feature but I would have to spend some time looking it up.

@Evangelink
Copy link
Member

Hi @fforjan,

Are you still interested in helping?

@fforjan
Copy link
Author

fforjan commented Jan 21, 2024

@Evangelink I wanted to do this as part of a Christmas/Beginning of the year project but in the end, for personal reason, I could not free my time to do this. I'm afraid I need to remove my name from this :(

@Evangelink
Copy link
Member

@fforjan No worries! I hope everything is alright, take care!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants