summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Documentation/workflow/UsingDotNetCli.md36
-rw-r--r--Documentation/workflow/UsingYourBuild.md20
-rw-r--r--README.md12
3 files changed, 24 insertions, 44 deletions
diff --git a/Documentation/workflow/UsingDotNetCli.md b/Documentation/workflow/UsingDotNetCli.md
index dd3c635977..b1ee5961cb 100644
--- a/Documentation/workflow/UsingDotNetCli.md
+++ b/Documentation/workflow/UsingDotNetCli.md
@@ -60,14 +60,14 @@ Please run `dotnet new console` in the app folder and update the created `.cspro
<PropertyGroup>
<OutputType>Exe</OutputType>
- <TargetFramework>netcoreapp2.1</TargetFramework>
+ <TargetFramework>netcoreapp3.0</TargetFramework>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
- <RuntimeFrameworkVersion>2.1.0-preview1-26210-0</RuntimeFrameworkVersion>
+ <RuntimeFrameworkVersion>3.0.0-preview1-26210-0</RuntimeFrameworkVersion>
</PropertyGroup>
<ItemGroup>
- <PackageReference Include="runtime.win-x64.Microsoft.NETCore.Runtime.CoreCLR" Version="2.1.0-preview1-26210-0" />
- <PackageReference Include="runtime.win-x64.Microsoft.NETCore.Jit" Version="2.1.0-preview1-26210-0" />
+ <PackageReference Include="runtime.win-x64.Microsoft.NETCore.Runtime.CoreCLR" Version="3.0.0-preview1-26210-0" />
+ <PackageReference Include="runtime.win-x64.Microsoft.NETCore.Jit" Version="3.0.0-preview1-26210-0" />
</ItemGroup>
</Project>
@@ -76,10 +76,10 @@ Please run `dotnet new console` in the app folder and update the created `.cspro
**You have to set the correct values for `RuntimeIdentifier` (RI), `RuntimeFrameworkVersion` and versions of both packages.**
You can generally figure that out by looking at the packages you found in your output.
-In our example you will see there is a package with the name `runtime.win-x64.Microsoft.NETCore.Runtime.CoreCLR.2.1.0-preview1-26210-0.nupkg`
+In our example you will see there is a package with the name `runtime.win-x64.Microsoft.NETCore.Runtime.CoreCLR.3.0.0-preview1-26210-0.nupkg`
```
-runtime.win-x64.Microsoft.NETCore.Runtime.CoreCLR.2.1.0-preview1-26210-0.nupkg
+runtime.win-x64.Microsoft.NETCore.Runtime.CoreCLR.3.0.0-preview1-26210-0.nupkg
^--RI---^ ^--------version-------^
```
@@ -110,22 +110,22 @@ Make sure that restoring done by `dotnet publish` installed the explicit version
```
PS C:\coreclr\helloWorld> dotnet publish
Restoring packages for C:\coreclr\helloWorld\helloWorld.csproj...
- Installing runtime.win-x64.Microsoft.NETCore.Runtime.CoreCLR 2.1.0-preview1-26210-
+ Installing runtime.win-x64.Microsoft.NETCore.Runtime.CoreCLR 3.0.0-preview1-26210-
```
If you see something like the message below it means that it has failed to restore your local runtime packages. In such case double check your `NuGet.config` file and paths used in it.
```
-C:\coreclr\helloWorld\helloWorld.csproj : warning NU1603: helloWorld depends on runtime.win-x64.Microsoft.NETCore.Runtime.CoreCLR (>= 2.1.0-preview1-26210-0) but runtime.win-x64.Microsoft.NETCore.Runtime.CoreCLR 2.1.0-preview1-26210-0 was not found. An approximate best match of runtime.win-x64.Microsoft.NETCore.Runtime.CoreCLR 2.1.0-preview2-25501-02 was resolved.
+C:\coreclr\helloWorld\helloWorld.csproj : warning NU1603: helloWorld depends on runtime.win-x64.Microsoft.NETCore.Runtime.CoreCLR (>= 3.0.0-preview1-26210-0) but runtime.win-x64.Microsoft.NETCore.Runtime.CoreCLR 3.0.0-preview1-26210-0 was not found. An approximate best match of runtime.win-x64.Microsoft.NETCore.Runtime.CoreCLR 3.0.0-preview2-25501-02 was resolved.
```
### 6. Run the app
-After you publish you will find all the binaries needed to run your application under `bin\Debug\netcoreapp2.1\win-x64\publish\`.
+After you publish you will find all the binaries needed to run your application under `bin\Debug\netcoreapp3.0\win-x64\publish\`.
To run the application simply run the EXE that is in this publish directory (it is the name of the app, or specified in the project file).
```
-.\bin\Debug\netcoreapp2.1\win-x64\publish\HelloWorld.exe
+.\bin\Debug\netcoreapp3.0\win-x64\publish\HelloWorld.exe
```
Running the app should tell you the version and which user and machine build the assembly as well as the commit hash of the code
@@ -133,7 +133,7 @@ at the time of building:
```
Hello World from Core 4.6.26210.0 @BuiltBy: adsitnik-MININT-O513E3V @SrcCode: https://github.com/dotnet/coreclr/tree/3d6da797d1f7dc47d5934189787a4e8006ab3a04
-The location is C:\coreclr\helloWorld\bin\Debug\netcoreapp2.1\win-x64\publish\System.Private.CoreLib.dll
+The location is C:\coreclr\helloWorld\bin\Debug\netcoreapp3.0\win-x64\publish\System.Private.CoreLib.dll
```
**Congratulations! You have just run your first app against local CoreCLR build!**
@@ -155,12 +155,12 @@ give it a value by setting the BuildNumberMinor environment variable.
```bat
set BuildNumberMinor=3
```
-before packaging. You should see this number show up in the version number (e.g. 2.1.0-preview1-26210-03).
+before packaging. You should see this number show up in the version number (e.g. 3.0.0-preview1-26210-03).
As an alternative you can delete the existing copy of the package from the Nuget cache. For example on
windows (on Linux substitute ~/ for %HOMEPATH%) you could delete
```bat
- %HOMEPATH%\.nuget\packages\runtime.win-x64.Microsoft.NETCore.Runtime.CoreCLR\2.1.0-preview1-26210-0
+ %HOMEPATH%\.nuget\packages\runtime.win-x64.Microsoft.NETCore.Runtime.CoreCLR\3.0.0-preview1-26210-0
```
which should make things work (but is fragile, confirm file timestamps that you are getting the version you expect)
@@ -175,10 +175,10 @@ Get this by simply listing the name of the `runtime.win-x64.Microsoft.NETCore.Ru
and you will get name of the which looks something like this
```
- runtime.win-x64.Microsoft.NETCore.Runtime.CoreCLR.2.1.0-preview1-26210-3.nupkg
+ runtime.win-x64.Microsoft.NETCore.Runtime.CoreCLR.3.0.0-preview1-26210-3.nupkg
```
-This gets us the version number, in the above case it is 2.1.0-preview1-26210-3. We will
+This gets us the version number, in the above case it is 3.0.0-preview1-26210-3. We will
use this in the next step.
#### 3. Update the references to your runtime package
@@ -187,12 +187,12 @@ Edit your `.csproj` file and change the versions:
```
<PropertyGroup>
- <RuntimeFrameworkVersion>2.1.0-preview1-26210-3</RuntimeFrameworkVersion>
+ <RuntimeFrameworkVersion>3.0.0-preview1-26210-3</RuntimeFrameworkVersion>
</PropertyGroup>
<ItemGroup>
- <PackageReference Include="runtime.win-x64.Microsoft.NETCore.Runtime.CoreCLR" Version="2.1.0-preview1-26210-3" />
- <PackageReference Include="runtime.win-x64.Microsoft.NETCore.Jit" Version="2.1.0-preview1-26210-3" />
+ <PackageReference Include="runtime.win-x64.Microsoft.NETCore.Runtime.CoreCLR" Version="3.0.0-preview1-26210-3" />
+ <PackageReference Include="runtime.win-x64.Microsoft.NETCore.Jit" Version="3.0.0-preview1-26210-3" />
</ItemGroup>
```
diff --git a/Documentation/workflow/UsingYourBuild.md b/Documentation/workflow/UsingYourBuild.md
index 6a65399c16..2624e6090b 100644
--- a/Documentation/workflow/UsingYourBuild.md
+++ b/Documentation/workflow/UsingYourBuild.md
@@ -28,7 +28,7 @@ or always fully qualify the path to dotnet in the root of this folder for all th
After setting up dotnet you can verify you are using the newer version by:
-`dotnet --info` -- the version should be greater than 2.1.0-*
+`dotnet --info` -- the version should be greater than 3.0.0-*
For another small walkthrough see [Dogfooding .NET Core SDK](https://github.com/dotnet/corefx/blob/master/Documentation/project-docs/dogfooding.md).
@@ -55,16 +55,6 @@ shared framework. In order to do that you will need to add a `RuntimeIdentifier
```
For Windows you will want `win-x64`, for macOS `osx-x64` and `linux-x64` for Linux.
-You might also need to explicitly specify a `PlatformTarget`: it shouldn't be required though, unless for some reason the default `PlatformTarget` on your machine, for that directory, is not `x64`.
-
-```xml
-<PropertyGroup>
- ...
- <RuntimeIdentifier>win-x64</RuntimeIdentifier>
- <PlatformTarget>x64</PlatformTarget>
-</PropertyGroup>
-```
-
### Publish
Now is the time to publish. The publish step will trigger restore and build. You can iterate on build by calling `dotnet build` as
@@ -79,10 +69,10 @@ dotnet publish
1. run `dotnet new nugetconfig`
2. go to the `NuGet.Config` file and add `<add key="dotnet-core" value="https://dotnet.myget.org/F/dotnet-core/api/v3/index.json" />`
-After you publish you will find you all the binaries needed to run your application under `bin\Debug\netcoreapp2.1\win-x64\publish\`.
+After you publish you will find you all the binaries needed to run your application under `bin\Debug\netcoreapp3.0\win-x64\publish\`.
```
-.\bin\Debug\netcoreapp2.1\win-x64\publish\HelloWorld.exe
+.\bin\Debug\netcoreapp3.0\win-x64\publish\HelloWorld.exe
```
**But we are not done yet, you need to replace the published runtime files with the files from your local build!**
@@ -101,7 +91,7 @@ you wish to update the DLLs. For example typically when you update CoreCLR you e
* System.Private.CoreLib.dll - If you modified C# it will end up here.
Thus after making a change and building, you can simply copy the updated binary from the `bin\Product\<OS>.<arch>.<flavor>`
-directory to your publication directory (e.g. `helloWorld\bin\Debug\netcoreapp2.1\win-x64\publish`) to quickly
+directory to your publication directory (e.g. `helloWorld\bin\Debug\netcoreapp3.0\win-x64\publish`) to quickly
deploy your new bits. In a lot of cases it is easiest to just copy everything from here to your publication directory.
You can build just the .NET Library part of the build by doing (debug, for release add 'release' qualifier)
@@ -135,7 +125,7 @@ at the time of building:
```
Hello World from Core 4.6.26210.0 @BuiltBy: adsitnik-MININT-O513E3V @SrcCode: https://github.com/dotnet/coreclr/tree/3d6da797d1f7dc47d5934189787a4e8006ab3a04
-The location is C:\coreclr\helloWorld\bin\Debug\netcoreapp2.1\win-x64\publish\System.Private.CoreLib.dll
+The location is C:\coreclr\helloWorld\bin\Debug\netcoreapp3.0\win-x64\publish\System.Private.CoreLib.dll
```
## Using DotNetCli to run your .NET Core Application
diff --git a/README.md b/README.md
index 4622dac3c0..e7dcadd9bd 100644
--- a/README.md
+++ b/README.md
@@ -152,20 +152,10 @@ The the actual output is placed in a directory like this
* bin\Product\Windows_NT.x64.Release
-Where you can see the operating system and CPU architecture, and the build type are part of the name. While
-the 'raw' output of the build is sometimes useful, normally you are only interested in the NuGet packages
-that were built, which are placed in the directory
-
-* bin\Product\Windows_NT.x64.Release\.nuget\pkg
-
-These packages are the 'output' of your build.
-
There are two basic techniques for using your new runtime.
1. **Use dotnet.exe and NuGet to compose an application**. See [Using Your Build](Documentation/workflow/UsingYourBuild.md) for
- instructions on creating a program that uses
- your new runtime by using the NuGet packages you just created and the 'dotnet' command line interface. This
- is the expected way non-runtime developers are likely to consume your new runtime.
+ instructions on creating a program that uses your new runtime by using the 'dotnet' command line interface.
2. **Use corerun.exe to run an application using unpackaged Dlls**. This repository also defines a simple host called
corerun.exe that does NOT take any dependency on NuGet. Basically it has to be told where to get all the