Skip to content

Commit e10f1d5

Browse files
authored
Misc files (dotnet#8353)
1 parent 840621b commit e10f1d5

12 files changed

+53
-36
lines changed

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
See [Contributing](https://github.com/dotnet/runtime/blob/main/CONTRIBUTING.md) for information about coding styles, source structure, making pull requests, and more.
44

5-
# Repos
5+
# Repositories
66

77
See the [.NET Repos](Documentation/core-repos.md) to find a repo to contribute to.

linux-support.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ Microsoft builds will generally load the highest OpenSSL version it finds, but c
4848

4949
Microsoft builds support multiple Red Hat versions. New .NET versions will typically only be supported on RHEL era distributions in active support.
5050

51-
* RHEL 7 era distributions are considered in maintenance.
52-
* RHEL 8 era distributions are considered in active support.
53-
* RHEL 9 era distributions are considered in active support.
51+
- RHEL 7 era distributions are considered in maintenance.
52+
- RHEL 8 era distributions are considered in active support.
53+
- RHEL 9 era distributions are considered in active support.
5454

5555
Red Hat family distributions include: AlmaLinux, CentOS, Oracle Linux, Red Hat Enterprise Linux, and Rocky Linux.
5656

release-notes/RunApiDiff.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ The [`RunApiDiff.ps1`](./RunApiDiff.ps1) script can automatically generate an AP
2424

2525
Examples of what this script generates:
2626

27-
- PR comparing .NET 6.0 vs .NET 7.0 Preview1: https://github.com/dotnet/core/pull/7211
28-
- PR comparing .NET 7.0 Preview1 vs Preview2: https://github.com/dotnet/core/pull/7307
27+
- PR comparing .NET 6.0 vs .NET 7.0 Preview1: <https://github.com/dotnet/core/pull/7211>
28+
- PR comparing .NET 7.0 Preview1 vs Preview2: <https://github.com/dotnet/core/pull/7307>

releases.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@ The following table lists end-of-life releases.
3333
| [.NET Core 1.1](release-notes/1.1/README.md) | [November 16th, 2016](https://devblogs.microsoft.com/dotnet/announcing-net-core-1-1/) | [LTS][policies] | [1.1.13][1.1.13] | [June 27, 2019](https://devblogs.microsoft.com/dotnet/net-core-1-0-and-1-1-will-reach-end-of-life-on-june-27-2019/) |
3434
| [.NET Core 1.0](release-notes/1.0/README.md) | [June 27th, 2016](https://devblogs.microsoft.com/dotnet/announcing-net-core-1-0/) | [LTS][policies] | [1.0.16][1.0.16] | [June 27, 2019](https://devblogs.microsoft.com/dotnet/net-core-1-0-and-1-1-will-reach-end-of-life-on-june-27-2019/) |
3535

36-
[3.1.32]: release-notes/3.1/3.1.32/3.1.32.md
3736
[5.0.17]: release-notes/5.0/5.0.17/5.0.17.md
38-
[2.1.30]: release-notes/2.1/2.1.30/2.1.30.md
37+
[3.1.32]: release-notes/3.1/3.1.32/3.1.32.md
3938
[3.0.3]: release-notes/3.0/3.0.3/3.0.3.md
4039
[2.2.8]: release-notes/2.2/2.2.8/2.2.8.md
4140
[2.1.30]: release-notes/2.1/2.1.30/2.1.30.md

samples/README.md

-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,3 @@ This directory contains .NET samples and documents.
1616
* [Install .NET](https://dotnet.microsoft.com/download/)
1717
* [.NET documentation](https://learn.microsoft.com/dotnet)
1818
* [.NET samples repo](https://github.com/dotnet/samples)
19-

samples/RaspberryPiInstructions.md

+9-11
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ These steps have been tested on a RPi 2 and RPi 3 with Linux and Windows.
66

77
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.
88

9-
## Creating an app:
9+
## Creating an app
1010

1111
* [Install .NET Core SDK](https://dotnet.microsoft.com/download) into a supported developer configuration.
1212
(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
1515
* Run `dotnet new console`
1616
* You can find a `helloworld.csproj` file is created under current directory.
1717

18-
```
18+
```xml
1919
<Project Sdk="Microsoft.NET.Sdk">
2020

2121
<PropertyGroup>
@@ -28,7 +28,7 @@ Note: All models of generation 1 and Pi Zero are not supported because the .NET
2828

2929
* 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" />`.
3030

31-
```
31+
```xml
3232
<?xml version="1.0" encoding="utf-8"?>
3333
<configuration>
3434
<packageSources>
@@ -37,23 +37,22 @@ Note: All models of generation 1 and Pi Zero are not supported because the .NET
3737
</configuration>
3838
```
3939

40-
## Publishing an app to run on the Pi:
40+
## Publishing an app to run on the Pi
4141

4242
* 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.
4343

4444
* 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.
4545

46-
47-
## Getting the app to run on the Pi.
46+
## Getting the app to run on the Pi
4847

4948
### Linux
5049

5150
* Install [Linux](https://www.raspberrypi.org/downloads/) on your Pi.
52-
5351
* 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.
5452

5553
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:
56-
```
54+
55+
```console
5756
sudo apt-get update
5857
sudo apt-get install curl libunwind8 gettext apt-transport-https
5958
```
@@ -63,7 +62,6 @@ sudo apt-get install curl libunwind8 gettext apt-transport-https
6362
### Win10 IoT Core
6463

6564
* Install [Windows 10 IoT Core](https://learn.microsoft.com/windows/iot-core/getstarted) on your Pi.
66-
6765
* 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.
6866

6967
**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
8684

8785
Please refer to Pete Gallagher's Blog;
8886

89-
- [.NET Core](https://bit.ly/dotnetcorepi)
90-
- [NET 5](https://bit.ly/dotnet5pi)
87+
* [.NET Core](https://bit.ly/dotnetcorepi)
88+
* [NET 5](https://bit.ly/dotnet5pi)
9189

9290
## GPIO access / communicating with hardware
9391

samples/YoctoInstructions.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ At this moment, the focus is on getting standalone applications running.
55
Unless explicitly mentioned, x86_64 and ARM platforms are supported.
66

77
## Getting started with base OS image
8+
89
Instructions below assume familiarity with Yocto build process.
910
Initial testing as been done on 2.2 Morty but it is probably applicable to
1011
other versions as well. .NET Core 2.0 Preview2 or later should be used.
@@ -50,7 +51,7 @@ DEFAULTTUNE_virtclass-multilib-lib64 = "x86"
5051

5152
Write and debug your app. When ready to publish, use:
5253

53-
```
54+
```console
5455
dotnet publish -r <runtime identifier>
5556
```
5657

@@ -60,4 +61,4 @@ For ARM and more details you can take a look at [RaspberryPiInstructions](Raspbe
6061
Package `bin/Debug/netcoreapp2.0/<runtime identifier>/publish` to your image.
6162
That directory has the native executable binary as well as all needed runtime dependencies.
6263

63-
After following these steps to configure Yocto, .NET Core applications should run just like they do on other supported Linux distros.
64+
After following these steps to configure Yocto, .NET Core applications should run just like they do on other supported Linux distros.

samples/dotnet-svcutil.xmlserializer-instructions.md

+12-3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ You can use the command `dotnet --info` to check which versions of .NET Core SDK
1717
Here are the step by step instructions on how to use dotnet-svcutil.xmlserializer in a .NET Core console application.
1818

1919
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+
2021
```c#
2122
[ServiceContract]
2223
public interface IService1
@@ -26,19 +27,25 @@ Here are the step by step instructions on how to use dotnet-svcutil.xmlserialize
2627
string GetData(int value);
2728
}
2829
```
30+
2931
2. Create a .NET Core console application as WCF client application that targets at netcoreapp 2.1, e.g. create an app named 'MyWCFClient' with the command,
30-
```
32+
33+
```console
3134
dotnet new console --name MyWCFClient
3235
```
36+
3337
Make sure your csproj targets a netcoreapp 2.1 as the following in .csproj. This is done using the following XML element in your .csproj
38+
3439
```xml
3540
<TargetFramework>netcoreapp2.1</TargetFramework>
3641
```
42+
3743
3. Add a package reference to System.ServiceModel.Http
38-
44+
3945
Run command: `dotnet add package System.ServiceModel.Http -v 4.5.0`
4046

4147
4. Add WCF Client code
48+
4249
```c#
4350
using System.ServiceModel;
4451

@@ -63,11 +70,13 @@ Here are the step by step instructions on how to use dotnet-svcutil.xmlserialize
6370
string GetData(int value);
6471
}
6572
```
73+
6674
5. Edit the .csproj and add a reference to the dotnet-svcutil.xmlserializer package. For example,
6775

6876
i. Run command: `dotnet add package dotnet-svcutil.xmlserializer -v 1.0.0`
6977

7078
ii. Add the following lines in MyWCFClient.csproj,
79+
7180
```xml
7281
<ItemGroup>
7382
<DotNetCliToolReference Include="dotnet-svcutil.xmlserializer" Version="1.0.0" />
@@ -76,4 +85,4 @@ Here are the step by step instructions on how to use dotnet-svcutil.xmlserialize
7685

7786
6. Build the application by running `dotnet build`. If everything succeeds, an assembly named MyWCFClient.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.
7887

79-
7. Start the WCF service e.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.
88+
7. Start the WCF service e.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.

samples/linker-instructions-advanced.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Using IL Linker Advanced Features
22

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>.
44

55
This document describes the more advanced features for the IL Linker and provides more insight into how it functions.
66

samples/linker-instructions.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Using the .NET IL Linker
22

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>.
44

55
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.
66

@@ -22,9 +22,9 @@ The instructions assume you are using [.NET Core 2.0](https://github.com/dotnet/
2222
* Create one with `dotnet new console -o testapp`; `cd testapp`, or
2323
* Clone / download the [.NET Core self-contained application Docker Production Sample -- using .NET IL Linker].
2424
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).
2828
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`:
2929
* `dotnet add package ILLink.Tasks -v 0.1.5-preview-1841731`
3030
1. Publish the application, using the following:

samples/xmlserializergenerator-instructions.md

+13-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Using Xml Serializer Generator on .NET Core
1+
# Using Xml Serializer Generator on .NET Core
22

33
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.
44

@@ -15,30 +15,38 @@ The following is required for Microsoft.XmlSerializer.Generator to work. You can
1515
Here are the step by step instructions on how to use Xml Serializer Generator in a .NET Core console application.
1616

1717
1. Create a .NET Core console application, e.g. create an app named 'MyApp' with the command,
18-
```
18+
19+
```console
1920
dotnet new console --name MyApp
2021
```
22+
2123
1. Edit the .csproj and add a reference to the Microsoft.XmlSerializer.Generator package. For example,
2224

2325
1. Run command: `dotnet add package Microsoft.XmlSerializer.Generator -v 1.0.0`
2426

2527
1. Add the following lines in MyApp.csproj,
28+
2629
```xml
2730
<ItemGroup>
2831
<DotNetCliToolReference Include="Microsoft.XmlSerializer.Generator" Version="1.0.0" />
2932
</ItemGroup>
3033
```
34+
3135
1. Add a class in the application. For example, add the class below in Program.cs,
36+
3237
```c#
3338
public class MyClass
3439
{
3540
public int Value;
3641
}
37-
```
38-
Now you can create an `XmlSerializer` for MyClass.
42+
```
43+
44+
Now you can create an `XmlSerializer` for MyClass.
45+
3946
```c#
4047
var serializer = new System.Xml.Serialization.XmlSerializer(typeof(MyClass));
41-
```
48+
```
49+
4250
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.
4351

4452
Start the application and it will automatically load and use the pre-generated serializers at runtime.

tools/dotnet-bootstrap/README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
DOTNET.BOOTSTRAP(1)
2+
23
### NAME
4+
35
.NET CLI Bootstrapping Tool - A tool to help you bootstrap the .NET Command Line Tool on unsupported platforms.
46

57
### 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

Comments
 (0)