-
Notifications
You must be signed in to change notification settings - Fork 966
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* locals * move links to bottom * fix numbering discrepency; standardize table * no need for ** * spacing * put back single-use internal links
- Loading branch information
1 parent
cd433ec
commit db42b94
Showing
14 changed files
with
333 additions
and
210 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
# Contributing | ||
|
||
See [Contributing Guide](../Documentation/contributing.md) for information about: | ||
See [Contributing Guide][contributing] for information about: | ||
|
||
* Which kind of PRs we accept/reject for .NET Core 3.0 release | ||
* Coding style | ||
* PR style preferences (squashing vs. merging, etc.) | ||
* Developer guide for building and testing locally | ||
|
||
[comment]: <> (Links) | ||
|
||
[contributing]: ../Documentation/contributing.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"cSpell.words": [ | ||
"binlog", | ||
"repos", | ||
"winforms" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,52 @@ | ||
# Building Windows Forms | ||
|
||
## Prerequisites | ||
Follow the prerequisites listed at [Building CoreFX on Windows](https://github.com/dotnet/corefx/blob/master/Documentation/building/windows-instructions.md) | ||
|
||
Follow the prerequisites listed at [Building CoreFX on Windows][corefx-windows-instructions] | ||
|
||
## Building from the command line | ||
* Run `.\build` from the repo root. | ||
|
||
* Run `.\build` from the repository root. | ||
* Builds the `System.Windows.Forms.sln` using the default config (Debug|Any CPU) | ||
* To specify a config, add `-configuration` followed by the config such as `.\build -configuration Release` | ||
|
||
If your build is successful, you should see something like this: | ||
|
||
```console | ||
Build succeeded. | ||
0 Warning(s) | ||
0 Error(s) | ||
``` | ||
|
||
Note that this does **not** build using your machine-wide installed version of the dotnet sdk. It builds using the dotnet sdk specified in the global.json in the repo root. | ||
Note that this does **not** build using your machine-wide installed version of the dotnet sdk. It builds using the dotnet sdk specified in the global.json in the repository root. | ||
|
||
## Building from Visual Studio | ||
|
||
* To build from Visual Studio, open System.Windows.Forms.sln in Visual Studio and build how you normally would. | ||
* Visual Studio behaves slightly differently than the command line. It uses the machine-wide installed SDK instead of the one specified in the global.json. | ||
* Please make sure you have the [latest .Net Core Daily Build](https://github.com/dotnet/core/blob/master/daily-builds.md) installed. | ||
* Please make sure you have the [latest .Net Core Daily Build][latest-core-build] installed. | ||
|
||
## Build outputs | ||
|
||
* All build outputs are generated under the `artifacts` folder. | ||
* Binaries are under `artifacts\bin` | ||
* For example, `System.Windows.Forms.dll` can be found under `artifacts\bin\System.Windows.Forms\Debug\netcoreapp3.0` | ||
* Logs are found under `artifacts\log` | ||
* Packages are found under `artifacts\packages` | ||
|
||
## Troubleshooting build errors | ||
|
||
* Most build errors are compile errors and can be dealt with accordingly. | ||
* Other error may be from MSBuild tasks. You need to examine the build logs to investigate. | ||
* The logs are generated at `artifacts\log\Debug\Build.binlog` | ||
* The file format is an MSBuild Binary Log. Install the [MSBuild Structured Log Viewer](http://msbuildlog.com/) to view them. | ||
* The file format is an MSBuild Binary Log. Install the [MSBuild Structured Log Viewer][msbuild-log-viewer] to view them. | ||
|
||
## Creating a package | ||
To create the Microsoft.Private.Winforms package, run `.\build -pack` | ||
|
||
To create the Microsoft.Private.Winforms package, run `.\build -pack` | ||
|
||
[comment]: <> (URI Links) | ||
|
||
[corefx-windows-instructions]: https://github.com/dotnet/corefx/blob/master/Documentation/building/windows-instructions.md | ||
[latest-core-build]: https://github.com/dotnet/core/blob/master/daily-builds.md | ||
[msbuild-log-viewer]: http://msbuildlog.com/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,40 @@ | ||
# Debugging | ||
|
||
There are two recommended ways to debug Windows Forms binaries. Both require that you first [build from source](https://github.com/dotnet/corefx/blob/master/Documentation/building.md). | ||
There are two recommended ways to debug Windows Forms binaries. Both require that you first [build from source][corefx-building]. | ||
|
||
Then, you are free make your changes locally. | ||
|
||
Once you are ready to debug your changes on an existing Windows Forms application, please follow one of the two following recommended techniques for relating your changes back to your project. You should then be able to set breakpoints and debug as expected. | ||
|
||
If you do not want to modify your local SDK, you may with to perform technique 2, while if you do not want to add an additional reference to your project, technique 1 may be better for you. | ||
|
||
### 1. Copy your changes into the SDK | ||
## (1) Copy your changes into the SDK | ||
|
||
copy the resulting assembly(-ies) from the base of the repository | ||
|
||
`[path-to-repo]\winforms\artifacts\bin\System.Windows.Forms\Debug\netcoreapp3.0_ ` | ||
`[path-to-repo]\winforms\artifacts\bin\System.Windows.Forms\Debug\netcoreapp3.0_` | ||
|
||
to your dotnet folder at: | ||
|
||
`[Drive]:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\[Version]` | ||
|
||
where **[Drive]** is your OS drive (for example, C:) and and **path-to-repo** is the additional path to our repository from the base drive. **[Version]** is your DesktopUI version directory (for example, 3.0.0-alpha-27017-4). Note if you have Microsoft.DesktopUI.App instead of Microsoft.WindowsDesktop.App, this is the outdated version. | ||
where **[Drive]** is your OS drive (for example, C:) and **[path-to-repo]** is the additional path to our repository from the base drive. **[Version]** is your DesktopUI version directory (for example, 3.0.0-alpha-27017-4). Note if you have Microsoft.DesktopUI.App instead of Microsoft.WindowsDesktop.App, this is the outdated version. | ||
|
||
**NOTE** that this will modify your SDK; to revert back, you will have to repair the install or reinstall. See the [dotnet Core repository](https://github.com/dotnet/core) for more information. | ||
**NOTE** that this will modify your SDK; to revert back, you will have to repair the install or reinstall. See the [dotnet Core repository][dotnet-core-repos] for more information. | ||
|
||
### 2. Point your project to your experimental binary(-ies) | ||
## (2) Point your project to your experimental binary(-ies) | ||
|
||
Add references to the binary(-ies) to your project ported to Core. For example, for System.Windows.Forms, you should add the following reference: | ||
|
||
```xml | ||
<ItemGroup> | ||
<Reference Include="[Drive]:[path-to-repo]\winforms\artifacts\bin\System.Windows.Forms\Debug\netcoreapp3.0\System.Windows.Forms.dll" /> | ||
<Reference Include="[Drive]:[path-to-repo]\winforms\artifacts\bin\System.Windows.Forms\Debug\netcoreapp3.0\System.Windows.Forms.dll" /> | ||
</ItemGroup> | ||
``` | ||
|
||
where **[Drive]** is the drive you have our repository in and **path-to-repo** is the additional path to our repository from the base drive (this may be nothing). Note netcoreapp3.0 may change. | ||
where **[Drive]** is the drive you have our repository in and **[path-to-repo]** is the additional path to our repository from the base drive (this may be nothing). Note netcoreapp3.0 may change. | ||
|
||
[comment]: <> (URI Links) | ||
|
||
[corefx-building]: https://github.com/dotnet/corefx/blob/master/Documentation/building.md | ||
[dotnet-core-repos]: https://github.com/dotnet/core |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.