Protecc icon indicating copy to clipboard operation
Protecc copied to clipboard

I'm unable to build this under VS 22 on Windows 11

Open ezxpro opened this issue 3 years ago • 4 comments

This is what I get instead: image

ezxpro avatar Sep 03 '22 14:09 ezxpro

Double check to see if you have nuget package source enabled. Your error messages seem to suggest that you don't have it enabled (or you can't reach it?).

In VS, right click the solution -> "Manage Nuget Packages for Solution", and then click the gear to see what package source you have enabled. You can see that "Microsoft Visual Studio Offline Packages" (referenced in your error logs) should be referencing what you have on your local hard drive vs actually fetching the nuget packages from nuget.org.

image

image

spooksbit avatar Sep 03 '22 15:09 spooksbit

Yeah looks like the nuget packages are missing. Do what @spooksbit suggested and also check the correct nuget packages are installed

FireCubeStudios avatar Sep 03 '22 16:09 FireCubeStudios

@FireCubeStudios that solved the dependency problem. Now I'm getting a NullReferenceException at line 66 of OOBEPage.xaml.cs Apparently it's an attempt to modify a property of an object that was not instantiated. I'm just trying to build this for fun, so I don't really know how to fix this.

ezxpro avatar Sep 03 '22 18:09 ezxpro

when vs hits the exception it will show a flyout and in that flyout you can check a box that ignores that exception

Lol i need to use #nullable next time for this

FireCubeStudios avatar Sep 03 '22 19:09 FireCubeStudios