Difference between revisions of "Develop .NET 5.0"

From MgmtWiki
Jump to: navigation, search
(Created page with "==Full Title==")
 
(Full Title)
 
Line 1: Line 1:
 
==Full Title==
 
==Full Title==
 +
Developing and deploying a .NET core 5.0 App to cross platform for either console or web deployment.
 +
 +
==Context==
 +
*Bring up a secure web site deployment with a minimum of fuss.
 +
*At first the challenge is getting the [[Web Site]] working well when run a localhost on a Windows 10 computer.
 +
*The assumption here is that the design is not fully fleshed out as the [[User Experience]] needs to be functional before it can be fully evaluated.
 +
*Later the problem is to get the performance to be good while the deployment expands to multiple instances.
 +
 +
==Problems==
 +
* Warning[https://stackoverflow.com/questions/65045746/warning-cs7022-the-entry-point-of-the-program-is-global-code-ignoring-progra  CS7022 - The entry point of the program is global code; ignoring 'Program.Main(string[])' entry point] Starting with net5.0, I've found that this error can be caused by having stray semicolons above the namespace keyword. Whether this is a bug or intended behavior is beyond me, however make sure you don't have any standalone semicolons
 +
===Debugging===
 +
* Error NETSDK1045  The current .NET SDK does not support targeting .NET 6.0.  Either target .NET 5.0 or lower, or use a version of the .NET SDK that supports .NET 6.0. CTestAgent C:\Program Files\dotnet\sdk\5.0.201\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets 141
 +
** Note that the download page says Visual Studio 2019 (v16.9 latest preview)
 +
 +
==References==
 +
 +
[[Category:Best Practice]]

Latest revision as of 16:48, 26 June 2021

Full Title

Developing and deploying a .NET core 5.0 App to cross platform for either console or web deployment.

Context

  • Bring up a secure web site deployment with a minimum of fuss.
  • At first the challenge is getting the Web Site working well when run a localhost on a Windows 10 computer.
  • The assumption here is that the design is not fully fleshed out as the User Experience needs to be functional before it can be fully evaluated.
  • Later the problem is to get the performance to be good while the deployment expands to multiple instances.

Problems

Debugging

  • Error NETSDK1045 The current .NET SDK does not support targeting .NET 6.0. Either target .NET 5.0 or lower, or use a version of the .NET SDK that supports .NET 6.0. CTestAgent C:\Program Files\dotnet\sdk\5.0.201\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets 141
    • Note that the download page says Visual Studio 2019 (v16.9 latest preview)

References