

Next I remove this assembly () from my nfig file and the references. CopyLocal reference 'C:\dev\Projects\Amber\AOX3\\bin\Debug\ ' is missing from output location. As an example, I have this 1>Project '' is not up to date.

Run the build once just in case anything really has changed.īuild the project and look at the top of the diagnostics in the output window. The first step is to change the MSBuild output from Minimal to Diagnostics: I’ve finally got something that’s actually helping me isolate the problems, and it’s related to bringing in packages via NuGet that bring in lots of other dependencies. Some of my projects always build, whereas others just say they’re already up-to-date. Net 5 RC2 WinForms project – my first ever!
#Carpe diem website mods
With these two mods I now had an error and warning free. So I edited the project file again and changed to: Consider changing the Sdk attribute of the root Project element to '' NETSDK1137: It is no longer necessary to use the SDK. The compiler then displayed a warning/comment saying that the project SDK could be updated: This changed fixed the target platform problem. To fix this I unloaded and then edited the project file (within Studio):
#Carpe diem website windows
Net Core 3.1:Īfter changing from 3.1 to 5 I then got a compilation error:Įrror NETSDK1136: The target platform must be set to Windows (usually by including '-windows' in the TargetFramework property) when using Windows Forms or WPF, or referencing projects or packages that do so. It looked like it worked straight away but the default target framework was. Net 5 rc2 I tried making a WinForms project using Visual Studio Preview. What’s the difference? I think, nothing! Although at some point I’m sure this will change. Net 5, close the page, and look again at the project JSON file – now the target framework has changed to: net5.0-windows7.0 Note: The Target Framework, shown in the project properties page, is now blank: (This gives VS2019 a chance to figure what’s going on!) Now the project compiles and I can create and run unit tests. Then, close my project and Visual Studio, and re-open it. I fix this by double-clicking the unit test project (in solution explorer) and editing the target framework from: net5.0 Net 5 Windows, which is more specific than general. This happens because the WinForms library targets. Project WinFormsControlLibrary1 supports: net5.0-windows7.0 (.NETCoreApp,Version=v5.0) After adding an xUnit project and referencing my library I get this error: error NU1201: Project WinFormsControlLibrary1 is not compatible with net5.0 (.NETCoreApp,Version=v5.0). Net 5 WinForms Control library (Windows 10, Visual Studio 2019) and want to add some unit tests for the non-UI classes.
