Developing. NET core Applications under Windows

Source: Internet
Author: User
Tags dotnet net command net command line

I. Development with Visual Studio 2015
1.1 Installing in turn
Visual Studio Update 3
. NET Core 1.0.0-vs Tooling Preview 2
1.2 The new. NET core project in the IDE, using the NuGet Manager, these people are familiar with
1.3 Publish application, write good program to publish to server this is required
Solution Manager to publish the project right-click publish Select File System, it will be published to the local bin\debug\publishoutput directory
II. Development using the command line method
If you feel uncomfortable in the previous way, do not want to install such a large VS2015, then use this way
2.1 Installing the. NET Core SDK for Windows and visual Studio Code (code)
2.2 Creating a project using the command line
mkdir Helloworldapp
CD Helloworldapp
dotnet New
2.3 Open Code, install C # extensions, open the Helloworldapp directory, edit C # code
2.3 Compiling and running
:: Recover NuGet Package
dotnet Restore
:: Compile Run
Dotnet Run
2.4 Release
dotnet Publish

Attached: dotnet command (full name: Microsoft. NET Core Shared Framework Host)

C:\>dotnet--help
. NET Command Line Tools (1.0.0-preview2-003121)
usage:dotnet [host-options] [command] [arguments] [common-options]

Arguments:
[Command] The command to execute
[Arguments] Arguments to pass to the command
[Host-options] Options specific to dotnet (host)
[Common-options] Options common to all commands
Common options:
-v|--verbose Enable Verbose output
-h|--help Show Help
Host options (passed before the command):
-v|--verbose Enable Verbose output
--version Display. NET CLI Version number
--info Display. NET CLI Info
Common Commands:
New Initialize a basic. NET Project
Restore restore dependencies specified in the. NET Project
Build Builds A. NET project
Publish publishes A. NET Project for deployment (including the runtime)
Run compiles and immediately executes a. NET Project
Test Runs unit tests using the test runner specified in the project
Pack creates a NuGet package

Developing. NET core Applications under Windows

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.