"C # Advanced Programming" study notes, Day2

  Basically ten day schedule with progress, specific knowledge of what is today the current .NET technology:

  You can create .NET Framework includes Windows Forms, WPF (Windows Presentation Foundation, Windows-based user interface framework) and on ASP.NET applications that run on Windows.

  .NET Code can create ASP.NET Code and console applications running on different platforms of, UWP (Universal Windows Platform, Universal Windows platform) can also use .NET Code, and also takes advantage of Windows UWP runtime, but only UWP It can be used on Windows.

  Xamarin provides Xamarin.Android and Xamarin.IoS, which makes C # can also develop Android and Iphone app, Xamarin is based on a technology Mono framework. Most importantly, these same techniques can be created through the .NET standard library.

  Then I try to use the .NET Code CLI compiler, by using windows command line to create a HelloWorld program and Web Mvc application

  Creating the HelloWorld console application dotnet new console --output HelloWorld

  Dotnet build build applications need to first current directory to the application directory.

  Then you can use dotnet bin / debug / netcordapp2.1 / HelloWorld.dll directly run the program course, you can use dotnet run operation.

  Use dotnet net mvc -o WebApp you can create a web mvc application, -o role is to create a folder named WebApp.

  Use dotnet publish -f netcordapp2.1 -c Release publish applications, you can use the browser to access.

  Self-contained deployment:

  Add this code under csproj designated support platform can use dotnet publish -c Release -r create a platform release file win10-x64

  <PropertyGroup>
  <OutputType>Exe</OutputType>
  <TargetFramework>netcoreapp2.1</TargetFramework>
  <LangVersion>latest</LangVersion>
  <RuntimeIdentifiers>
  win10-64;ubuntu-x64;osx.10.11-x64;
  </RuntimeIdentifiers>
  </PropertyGroup>

It can open files directly in the application execution platform released under the folder to open it directly to friends.

Guess you like

Origin www.cnblogs.com/js957/p/11094684.html