You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,6 @@
2
2
3
3
See [Contributing](https://github.com/dotnet/runtime/blob/main/CONTRIBUTING.md) for information about coding styles, source structure, making pull requests, and more.
4
4
5
-
# Repos
5
+
# Repositories
6
6
7
7
See the [.NET Repos](Documentation/core-repos.md) to find a repo to contribute to.
Copy file name to clipboardExpand all lines: samples/RaspberryPiInstructions.md
+9-11
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ These steps have been tested on a RPi 2 and RPi 3 with Linux and Windows.
6
6
7
7
Note: All models of generation 1 and Pi Zero are not supported because the .NET Core JIT depends on armv7 instructions not available on those versions.
8
8
9
-
## Creating an app:
9
+
## Creating an app
10
10
11
11
*[Install .NET Core SDK](https://dotnet.microsoft.com/download) into a supported developer configuration.
12
12
(Raspberry Pi itself is supported only as deployment target but there is an unsupported version of the SDK available as well.)
@@ -15,7 +15,7 @@ Note: All models of generation 1 and Pi Zero are not supported because the .NET
15
15
* Run `dotnet new console`
16
16
* You can find a `helloworld.csproj` file is created under current directory.
17
17
18
-
```
18
+
```xml
19
19
<ProjectSdk="Microsoft.NET.Sdk">
20
20
21
21
<PropertyGroup>
@@ -28,7 +28,7 @@ Note: All models of generation 1 and Pi Zero are not supported because the .NET
28
28
29
29
* If you get restore errors, make sure you have a nuget.config file next to your csproj that includes the dotnet-core myget feed: `<add key="dotnet-core" value="https://dotnet.myget.org/F/dotnet-core/api/v3/index.json" />`.
30
30
31
-
```
31
+
```xml
32
32
<?xml version="1.0" encoding="utf-8"?>
33
33
<configuration>
34
34
<packageSources>
@@ -37,23 +37,22 @@ Note: All models of generation 1 and Pi Zero are not supported because the .NET
37
37
</configuration>
38
38
```
39
39
40
-
## Publishing an app to run on the Pi:
40
+
## Publishing an app to run on the Pi
41
41
42
42
* Run `dotnet publish -r <runtime identifier>` for example `dotnet publish -r win-arm` to publish the application for windows and `dotnet publish -r linux-arm` for Linux running on Raspberry Pi.
43
43
44
44
* Under `./bin/Debug/netcoreapp2.1/<runtime identifier>/publish` or `.\bin\Debug\netcoreapp2.1\<runtime identifier>\publish` you will see the whole self contained app that you need to copy to your Raspberry Pi.
45
45
46
-
47
-
## Getting the app to run on the Pi.
46
+
## Getting the app to run on the Pi
48
47
49
48
### Linux
50
49
51
50
* Install [Linux](https://www.raspberrypi.org/downloads/) on your Pi.
52
-
53
51
* Install the [platform dependencies from your distro's package manager](https://github.com/dotnet/core/blob/main/Documentation/prereqs.md) for .NET Core. .NET Core depends on some packages from the Linux package manager as prerequisites to running your application.
54
52
55
53
For Raspbian [Debian 9 Jessie](https://learn.microsoft.com/dotnet/core/linux-prerequisites?tabs=netcore2x#install-net-core-for-debian-8-or-debian-9-64-bit) you need to do the following:
* Install [Windows 10 IoT Core](https://learn.microsoft.com/windows/iot-core/getstarted) on your Pi.
66
-
67
65
* Copy your app, i.e. whole `publish` directory mentioned above, to the Raspberry Pi and execute run `helloworld.exe` to see `Hello World!` from .NET Core running on your Pi.
68
66
69
67
**It is important that you copy the `publish` directory contents displayed at the end of the publish operation and not from another location in the `bin` folder.**
@@ -86,8 +84,8 @@ Pete Gallagher has also created single line install scripts for .NET Core and .N
Copy file name to clipboardExpand all lines: samples/dotnet-svcutil.xmlserializer-instructions.md
+12-3
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@ You can use the command `dotnet --info` to check which versions of .NET Core SDK
17
17
Here are the step by step instructions on how to use dotnet-svcutil.xmlserializer in a .NET Core console application.
18
18
19
19
1. Create a WCF Service named 'MyWCFService' using the default template 'WCF Service Application' in .NET Framework. Add ```[XmlSerializerFormat]``` attribute on the service method like the following
20
+
20
21
```c#
21
22
[ServiceContract]
22
23
publicinterfaceIService1
@@ -26,19 +27,25 @@ Here are the step by step instructions on how to use dotnet-svcutil.xmlserialize
26
27
stringGetData(intvalue);
27
28
}
28
29
```
30
+
29
31
2. Createa .NETCoreconsoleapplicationasWCFclientapplicationthattargetsatnetcoreapp2.1, e.g. createanappnamed'MyWCFClient'withthecommand,
7. StarttheWCFservicee.g. runninghttp://localhost:2561/Service1.svc in the IE. Then start the client application and it will automatically load and use the pre-generated serializers at runtime.
88
+
7. StarttheWCFservicee.g. running<http://localhost:2561/Service1.svc> in the IE. Then start the client application and it will automatically load and use the pre-generated serializers at runtime.
Copy file name to clipboardExpand all lines: samples/linker-instructions-advanced.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Using IL Linker Advanced Features
2
2
3
-
***Note:*** In 3.0, the linker has shipped as part of the SDK (still marked as "preview"), and the out-of-band nuget package is no longer supported. Please see the new instructions at https://aka.ms/dotnet-illink.
3
+
***Note:*** In 3.0, the linker has shipped as part of the SDK (still marked as "preview"), and the out-of-band nuget package is no longer supported. Please see the new instructions at <https://aka.ms/dotnet-illink>.
4
4
5
5
This document describes the more advanced features for the IL Linker and provides more insight into how it functions.
Copy file name to clipboardExpand all lines: samples/linker-instructions.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Using the .NET IL Linker
2
2
3
-
***Note:*** In 3.0, the linker has shipped as part of the SDK (still marked as "preview"), and the out-of-band nuget package is no longer supported. Please see the new instructions at https://aka.ms/dotnet-illink.
3
+
***Note:*** In 3.0, the linker has shipped as part of the SDK (still marked as "preview"), and the out-of-band nuget package is no longer supported. Please see the new instructions at <https://aka.ms/dotnet-illink>.
4
4
5
5
The .NET team has built a linker to reduce the size of .NET Core applications. It is built on top of the excellent and battle-tested [mono linker](https://github.com/mono/linker). The Xamarin tools also use this linker.
6
6
@@ -22,9 +22,9 @@ The instructions assume you are using [.NET Core 2.0](https://github.com/dotnet/
22
22
* Create one with `dotnet new console -o testapp`; `cd testapp`, or
23
23
* Clone / download the [.NET Core self-contained application Docker Production Sample -- using .NET IL Linker].
24
24
1. Add a NuGet.Config file in the root of your project, using the following:
25
-
*`dotnet new nuget`
26
-
* Add this line to nuget.config, under `<clear />`: `<add key="dotnet-core" value="https://dotnet.myget.org/F/dotnet-core/api/v3/index.json" />`
27
-
* The final file should look like [nuget.config](nuget.config).
25
+
*`dotnet new nuget`
26
+
* Add this line to nuget.config, under `<clear />`: `<add key="dotnet-core" value="https://dotnet.myget.org/F/dotnet-core/api/v3/index.json" />`
27
+
* The final file should look like [nuget.config](nuget.config).
28
28
1. Add a reference to the [latest version of the linker package](https://dotnet.myget.org/feed/dotnet-core/package/nuget/ILLink.Tasks) in your .csproj, using the command below. As of writing, that version is `0.1.5-preview-1841731`:
Copy file name to clipboardExpand all lines: samples/xmlserializergenerator-instructions.md
+13-5
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Using Xml Serializer Generator on .NET Core
1
+
# Using Xml Serializer Generator on .NET Core
2
2
3
3
Like the Xml Serializer Generator (sgen.exe) on desktop, Microsoft.XmlSerializer.Generator NuGet package is the solution for .NET Core and .NET Standard Libraries. It creates an Xml serialization assembly for types contained in an assembly to improve the startup performance of Xml serialization when serializing or de-serializing objects of those types using XmlSerializer.
4
4
@@ -15,30 +15,38 @@ The following is required for Microsoft.XmlSerializer.Generator to work. You can
15
15
Here are the step by step instructions on how to use Xml Serializer Generator in a .NET Core console application.
16
16
17
17
1. Create a .NET Core console application, e.g. create an app named 'MyApp' with the command,
18
-
```
18
+
19
+
```console
19
20
dotnet new console --name MyApp
20
21
```
22
+
21
23
1. Edit the .csproj and add a reference to the Microsoft.XmlSerializer.Generator package. For example,
22
24
23
25
1. Run command: `dotnet add package Microsoft.XmlSerializer.Generator -v 1.0.0`
1. Add a class in the application. For example, add the class below in Program.cs,
36
+
32
37
```c#
33
38
public class MyClass
34
39
{
35
40
public int Value;
36
41
}
37
-
```
38
-
Now you can create an `XmlSerializer` for MyClass.
42
+
```
43
+
44
+
Now you can create an `XmlSerializer` for MyClass.
45
+
39
46
```c#
40
47
var serializer = new System.Xml.Serialization.XmlSerializer(typeof(MyClass));
41
-
```
48
+
```
49
+
42
50
1. Build the application by running `dotnet build`. If everything succeeds, an assembly named MyApp.XmlSerializers.dll will be generated in the output folder. You will see warnings in the build output if the tool failed to generate the assembly.
43
51
44
52
Start the application and it will automatically load and use the pre-generated serializers at runtime.
.NET CLI Bootstrapping Tool - A tool to help you bootstrap the .NET Command Line Tool on unsupported platforms.
4
6
5
7
### DESCRIPTION
6
-
The current .NET CLI Bootstrapping Tool (dotnet.bootstrap.py) has been deprecated. The documentation on how to use the new replacement script for .NET CLI Bootstrapping and where it can be found is defined here - https://github.com/dotnet/source-build/blob/main/Documentation/boostrap-new-os.md.
8
+
9
+
The current .NET CLI Bootstrapping Tool (dotnet.bootstrap.py) has been deprecated. The documentation on how to use the new replacement script for .NET CLI Bootstrapping and where it can be found is defined here: <https://github.com/dotnet/source-build/blob/main/Documentation/boostrap-new-os.md>.
0 commit comments