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

Issue building sample solution/projects #114

Closed
KinsonDigital opened this issue Mar 26, 2021 · 5 comments
Closed

Issue building sample solution/projects #114

KinsonDigital opened this issue Mar 26, 2021 · 5 comments

Comments

@KinsonDigital
Copy link

Issue:

I am having issues with building anything in the solution for the sample projects.

Reproduce Steps:

  1. Checkout tag 6.0.1xx-preview2
  2. Open solution with Visual Studio Preview
  3. Build Solution
  4. Observe the results below:

Errors In Error List:
image

Error Message:
image


Other Info:

Visual Studio Version: v16.10.0 Preview v1.0
.NET SDK: Installed .NET SDK 6.0.100-preview.2.21155.3(x64)
Windows Version: v20H2 (OS Build 19042.868)

@jonathanpeppers
Copy link
Member

There is a manual step to create EnableWorkloadResolver.sentinel, did you do that part already?

https://github.com/dotnet/net6-mobile-samples#using-ides

With this change in place, the HelloMaui project won't work inside Visual Studio yet, but you can unload it to try HelloAndroid and HelloiOS.

@KinsonDigital
Copy link
Author

I did not try attempt that part yet.

Let me give that a shot. 😊

@KinsonDigital
Copy link
Author

When running the command from an admin command prompt, it did not work and said Access Denied. This was with all instances of VS shutdown.

I tried the powershell version and it ran with no issues.

I started up VS preview and opened the solution, unloaded the HelloMaui project and rebuilt the solution and I am getting the below results.

image

@jonathanpeppers
Copy link
Member

You need to use an Administrator command-prompt, or it won't be able to create the EnableWorkloadResolver.sentinel file.

Command-line builds work fine, because they aren't using MSBuild from Visual Studio.

@KinsonDigital
Copy link
Author

I am pretty sure I used and admin prompt. I always have my CLI prompts run as admin. But, I will check it out again just to make sure. 🙂

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

No branches or pull requests

2 participants