Merge branch 'rel/1.0.0' into hostpfiles
This commit is contained in:
commit
7789a42766
361 changed files with 7869 additions and 1870 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -277,3 +277,6 @@ test/PackagedCommands/Consumers/*/project.json
|
||||||
# Vim swp files
|
# Vim swp files
|
||||||
*.swp
|
*.swp
|
||||||
*.*~
|
*.*~
|
||||||
|
|
||||||
|
# VS generated files
|
||||||
|
launchSettings.json
|
214
Documentation/cli-installation-scenarios.md
Normal file
214
Documentation/cli-installation-scenarios.md
Normal file
|
@ -0,0 +1,214 @@
|
||||||
|
Obtaining .NET CLI
|
||||||
|
==================
|
||||||
|
|
||||||
|
# Contents
|
||||||
|
* [Overview](#overview)
|
||||||
|
* [General principles](#general-principles)
|
||||||
|
* [Channels](#channels)
|
||||||
|
* [Funnels and discovery mechanisms for CLI bits](#funnels-and-discovery-mechanisms-for-cli-bits)
|
||||||
|
* [Getting Started page](#getting-started-page)
|
||||||
|
* [Repo landing page](#repo-landing-page)
|
||||||
|
* [Dependencies](#dependencies)
|
||||||
|
* [Upgrades](#upgrades)
|
||||||
|
* [Layout on disk](#layout-on-disk)
|
||||||
|
* [Acquisition modes](#acquisition-modes)
|
||||||
|
* [Native installers](#native-installers)
|
||||||
|
* [Installation script](#installation-script)
|
||||||
|
* [Windows one-liner](#windows-command)
|
||||||
|
* [OSX/Linux one-liner](#osxlinux-shell-command)
|
||||||
|
* [Complete manual installation](#complete-manual-installation)
|
||||||
|
* [Docker](#docker)
|
||||||
|
* [NuGet Packages](#nuget-packages)
|
||||||
|
* [Acquiring through other products](#acquiring-through-other-products)
|
||||||
|
* [IDEs and editors](#ides-and-editors)
|
||||||
|
|
||||||
|
|
||||||
|
# Overview
|
||||||
|
This document/spec outlines the CLI install experience. This covers the technologies being used for install, the principles that are driving the installation experience, the ways users are coming to the installs and what each of the installs contains, in terms of stability and similar.
|
||||||
|
|
||||||
|
# General principles
|
||||||
|
|
||||||
|
- Upgrades using the native installers Just Work(tm)
|
||||||
|
- All user facing materials point to the getting started page
|
||||||
|
- Defaults are stable bits; users need extra effort to install nightly builds
|
||||||
|
- Only HTTPS links are allowed in any online property
|
||||||
|
- Provide native installers for each supported platform
|
||||||
|
- Provide automation-ready installers for each target platform
|
||||||
|
|
||||||
|
# Channels
|
||||||
|
Channels represent a way for users who are getting the CLI to reason about the stability and quality of the bits they are getting. This is one more way for the user to be fully aware of the state the bits that are being installed are in and to set proper expectations on first use.
|
||||||
|
|
||||||
|
The table below outlines the channels:
|
||||||
|
|
||||||
|
| Property | Description |
|
||||||
|
|------------------ |------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
|
| Nightly | Unstable bits that are "bleeding edge". Users are not expected to use this channel often, however it is there for those situations when someone needs/wants a feature that hasn't been stabilizied yet. Also, used for internal testing. |
|
||||||
|
| Preview | Pre-release stable builds with known issues and/or known feature gaps. We are OK with users installing these for preview purposes. |
|
||||||
|
| Production | Actual releases. Most users are encouraged to install these. |
|
||||||
|
|
||||||
|
Below table shows the mapping between the channels, branches and feeds for the Debian pacakage. Since channels also impact the NuGet packages, it also contains the version of the package used and the feed to opt in to each channel.
|
||||||
|
|
||||||
|
| Channel | Branch | Debian feed | Debian package name | NuGet version | NuGet feed |
|
||||||
|
|------------ |----------- |------------- |--------------------- |--------------- |--------------------------------------- |
|
||||||
|
| Nightly | master | Development | dotnet-nightly | 1.0.0-dev-* | https://dotnet.myget.org/f/dotnet-cli |
|
||||||
|
| Preview | rel/<ver> | Development | dotnet | 1.0.0-beta-* | https://dotnet.myget.org/f/dotnet-cli |
|
||||||
|
| Production | production/<ver> | Production | dotnet | 1.0.0 | https://api.nuget.org/v3/index.json |
|
||||||
|
|
||||||
|
|
||||||
|
# Funnels and discovery mechanisms for CLI bits
|
||||||
|
There are multiple ways that we will funnel users towards the installers for the CLI:
|
||||||
|
|
||||||
|
1. [Getting Started Page](https://aka.ms/dotnetcoregs)
|
||||||
|
2. [Repo landing page](https://github.com/dotnet/cli/blob/rel/1.0.0/README.md)
|
||||||
|
3. Package repositories for platforms (`apt-get`, `brew` etc.)
|
||||||
|
4. IDEs and editors that integrate with CLI (e.g. Visual Studio, VS Code, Sublime etc.)
|
||||||
|
|
||||||
|
Out of the above, the first two funnels are under the control of the CLI team so we will go into slightly more details. The rest of the funnels will use a prescribed way to get to the bits and will have guidance on what bits to use.
|
||||||
|
|
||||||
|
## Getting Started page
|
||||||
|
The page can be found on https://aka.ms/dotnetcoregs. This is the main curated first-run funnel for the dotnet CLI. The intent of the page is to help users test out the CLI quickly and become familiar with what the platform offers. This should be the most stable and curated experience we can offer.
|
||||||
|
|
||||||
|
The Getting Started page should only point users to curated install experiences that can contain only stable or LKG bits.
|
||||||
|
|
||||||
|
The below table shows other pertinent information for installs on the "Getting started" page.
|
||||||
|
|
||||||
|
| Property | Description |
|
||||||
|
|----------------------- |-------------------------------------------------------------- |
|
||||||
|
| Debian feed | Development |
|
||||||
|
| Brew repo/tap | Brew binary repo (https://github.com/Homebrew/homebrew-binary)|
|
||||||
|
| CentOS feed | TBD
|
||||||
|
| Local install scripts | Latest from rel/1.0.0 |
|
||||||
|
|
||||||
|
## Repo landing page
|
||||||
|
The repo landing page can be found on: https://github.com/dotnet/cli/readme.md. Download links on the landing page should be decreased in importance. First thing for "you want to get started" section should link to the getting started page on the marketing site. The Repo Landing Page should be used primarily by contributors to the CLI. There should be a separate page that has instructions on how to install both the latest stable as well as latest development with proper warnings around it. The separate page is to really avoid the situation from people accidentally installing unstable bits (since search engines can drop them in the repo first).
|
||||||
|
|
||||||
|
The source branches and other items are actually branch specific for the repo landing page. As the user switches branches, the links and badges on the page will change to reflect the builds from that branch.
|
||||||
|
|
||||||
|
# Dependencies
|
||||||
|
.NET Core CLI is built on top of CoreFX and CoreCLR and as such its' dependencies set is defined by the platform that those two combine. Whether or not those dependencies will be installed depends on the installer being used. On Debian, for instance, using `apt-get` will mean that the appropriate dependencies are installed. For OS X using the PKG (installer) dependencies that are not part of OS X will not be installed. So, to summarize: the CLI bundle will not carry native dependencies of CoreFX and CoreCLR with it.
|
||||||
|
|
||||||
|
A list of dependencies can be found on [dependency list](TBD).
|
||||||
|
|
||||||
|
# Upgrades and updates
|
||||||
|
**TODO**
|
||||||
|
|
||||||
|
# Layout on disk
|
||||||
|
**TODO**
|
||||||
|
|
||||||
|
|
||||||
|
# Acquisition modes
|
||||||
|
There are multiple acquisition modes that the CLI will have:
|
||||||
|
|
||||||
|
1. Native installers
|
||||||
|
2. Install scripts
|
||||||
|
3. NuGet packages (for use in other people's commands/code)
|
||||||
|
4. Docker
|
||||||
|
|
||||||
|
Let's dig into some details.
|
||||||
|
|
||||||
|
## Native installers
|
||||||
|
These installation experiences are the primary way new users are getting the bits.The primary way to get information about this mode of installation is the [Getting Started page](#getting-started-page). The native installers are considered to be stable by default; this does not imply lack of bugs, but it does imply predictable behavior. They are generated from the stable branches and are never used to get the nightly bits.
|
||||||
|
|
||||||
|
The native installers are:
|
||||||
|
|
||||||
|
| Platform | Installer | Status | Package name |
|
||||||
|
|--------------------- |------------------ |---------- |-------------------- |
|
||||||
|
| Windows | Bundle installer | Done | dotnet |
|
||||||
|
| Ubuntu 14.04/Debian | apt-get feed | Done | dotnet; dotnet-dbg |
|
||||||
|
| OS X | PKG | Done | dotnet |
|
||||||
|
| OS X | Homebrew | Not done | dotnet |
|
||||||
|
| CentOS/RH | RPM | Not done | dotnet |
|
||||||
|
|
||||||
|
|
||||||
|
## Installation script
|
||||||
|
This approach is a shell one-liner that downloads an installation script and runs it. The installation script will download the latest zip/tarball (depending on the script used) and will unpack it to a given location. After that, the script will print out what needs to be set for the entire CLI to work (env variables, $PATH modification etc.).
|
||||||
|
|
||||||
|
This install covers the following main scenario:
|
||||||
|
|
||||||
|
* Local installation on a dev machine
|
||||||
|
* Acquiring tools on a CI build server
|
||||||
|
|
||||||
|
|
||||||
|
The features the script needs to support/have are:
|
||||||
|
* Support for dev and stable channel
|
||||||
|
* Support for specifying the version
|
||||||
|
* Support for specfying the installation location
|
||||||
|
* Support specifying whether the debug package needs to be downloaded
|
||||||
|
* Automatically add the install to $PATH unless --no-path/-NoPath is present
|
||||||
|
|
||||||
|
|
||||||
|
### Local installation
|
||||||
|
The local installation puts the bits in any folder on disk that the user specifies when invoking the script. The layout is pretty much the same as with native installers.
|
||||||
|
|
||||||
|
The local install can "grow up" into a global one simply by pointing the system PATH to the relevant bin folder within the layout on disk.
|
||||||
|
|
||||||
|
Acquiring the tools on the CI server would be done in the same way as on a user machine with a local install: the install script would be invoked with a given set of options and then further build scripts would actually use the tools installed in this way to do their thing (build, restore, pack/publish etc.)
|
||||||
|
|
||||||
|
The guidance is, of course, to always use the beta channel for the script, and this is what the script will have as the default option.
|
||||||
|
|
||||||
|
### Installation script features
|
||||||
|
The following arguments are needed for the installation script:
|
||||||
|
|
||||||
|
| dotnet-install.sh param (Linux, OSX) | dotnet-install.ps1 param (Windows) | Defaults | Description |
|
||||||
|
|-------------------------------------- |------------------------------------ |----------------------- |------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||||
|
| --channel | -Channel | "Production" | Which channel (i.e. "nightly", "preview", "production") to install from. |
|
||||||
|
| N/A (currently only x64 supported) | -Architecture | <bitness of the machine> | Architecture of the dotnet CLI to be installed |
|
||||||
|
| --version | -Version | global.json or Latest | Which version of CLI to install; you need to specify the version as 3-part version (i.e. 1.0.0-13232). If omitted, it will default to the first global.json that contains the sdkVersion property; if that is not present it will use Latest. |
|
||||||
|
| --prefix | -InstallDir | .dotnet | Path to where to install the CLI bundle. The directory is created if it doesn't exist. On Linux/OSX this directory is created in the user home directory (`$HOME`). On Windows, this directory is created in `%LocalAppData%`. |
|
||||||
|
| --debug | -Debug | false | Whether to use the "fat" packages that contain debugging symbols or not. |
|
||||||
|
| --no-path | -NoPath | false | Export the prefix/installdir to the path for the current session. This makes CLI tools available immidiately after install. |
|
||||||
|
#### Install the latest nightly CLI
|
||||||
|
|
||||||
|
Windows:
|
||||||
|
```
|
||||||
|
./dotnet-install.ps1 -Channel nightly
|
||||||
|
```
|
||||||
|
OSX/Linux:
|
||||||
|
```
|
||||||
|
./dotnet-install.sh --channel nightly
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Install the latest preview to specified location
|
||||||
|
|
||||||
|
Windows:
|
||||||
|
```
|
||||||
|
./dotnet-install.ps1 -Channel preview -InstallDir C:\cli
|
||||||
|
```
|
||||||
|
OSX/Linux:
|
||||||
|
```
|
||||||
|
./dotnet-install.sh --channel preview --prefix ~/cli
|
||||||
|
```
|
||||||
|
|
||||||
|
### Windows obtain one-liner example
|
||||||
|
|
||||||
|
```
|
||||||
|
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "&{iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0/scripts/obtain/dotnet-install.ps1'))}"
|
||||||
|
```
|
||||||
|
|
||||||
|
### OSX/Linux obtain one-liner example
|
||||||
|
|
||||||
|
```
|
||||||
|
curl -sSL https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0/scripts/obtain/dotnet-install.sh | bash /dev/stdin [args]
|
||||||
|
```
|
||||||
|
|
||||||
|
## Docker
|
||||||
|
[Docker](https://docs.docker.com/) has become a pretty good way to use developer tools, from trying them out in an interactive image use to using it for deployment. We have Docker images on DockerHub already.
|
||||||
|
|
||||||
|
Docker images should always be updated as we make new releases. We should have Docker images of stable releases, built from the rel/* branches.
|
||||||
|
|
||||||
|
## NuGet packages
|
||||||
|
NuGet packages of the CLI bits that make sense are published to relevant feeds. The developer who wishes to use these needs to specify a version. The version is used to opt-in to the three channels above. The actuall "installation" here is restoring the package as a dependency for a certain project (i.e. `ProjectServer` or similar).
|
||||||
|
|
||||||
|
The table in the [channels section](#channels) has the examples of mapping between branches and NuGet package versions.
|
||||||
|
|
||||||
|
# Acquiring through other products
|
||||||
|
|
||||||
|
## IDEs and editors
|
||||||
|
Anything that goes into the higher-level tools should always use a stable build of CLI coming frol rel/* branches as required.
|
||||||
|
|
||||||
|
If there exist any mechanism that notifies users of updates of the CLI, it should ideally point users to the Getting Started page to acquire the installers, or, if that is deemed too heavy-handed, it should point people to the last stable release. If there is a need of the URL to be "baked in" to the higher-level tool, that URL should be an aka.ms URL because it needs to be stable on that end.
|
||||||
|
|
||||||
|
Cross-platform IDEs/editors will work in similar way as above. The notification should also point people to the Getting Started page. The reason is simple: it is the one page where users can pick and choose their installation experience.
|
||||||
|
|
||||||
|
### Visual Studio
|
||||||
|
Visual Studio will not be shipping CLI in-box. However, it will use CLI when installed. The install will be tied into other installs like WET and similar. The URL that is baked in VS should be an aka.ms URL because it needs to be stable on that end. The other, pointing end, should also be a stable URL/location.
|
|
@ -1,72 +0,0 @@
|
||||||
# General principles that apply to the installs
|
|
||||||
- This doc is represnting ideal state and not the current state
|
|
||||||
- Only HTTPS links are allowed in any online property
|
|
||||||
- All installers are signed properly
|
|
||||||
- All user facing materials point to the getting started page
|
|
||||||
- The user needs extra effort to install the "bleeding edge" bits (nightly build)
|
|
||||||
|
|
||||||
# Landing Pages
|
|
||||||
[Getting Started Page](https://aka.ms/dotnetcoregs) - for customers
|
|
||||||
[Repo landing page](https://github.com/dotnet/cli/blob/rel/1.0.0/README.md) - for contributors
|
|
||||||
|
|
||||||
## Getting Started Page
|
|
||||||
The page can be found on https://aka.ms/dotnetcoregs.
|
|
||||||
|
|
||||||
* Installation targets: native installers (bits) & "curl&run"
|
|
||||||
* Source branch: rel/1.0.0
|
|
||||||
* Debian feed: (now: Development; future: Production)
|
|
||||||
* Installation script links: Latest from rel/1.0.0
|
|
||||||
* Getting started page can never point to unstable builds
|
|
||||||
* URLs point to: latest green build of rel/1.0.0;
|
|
||||||
|
|
||||||
This is the main curated first-run experience for the dotnet CLI. The intent of the page is to help users "kick the tires" quickly and become familiar with what the platform offers. This should be the most stable and curated experience we can offer.
|
|
||||||
|
|
||||||
## Repo Landing Page
|
|
||||||
The repo landing page can be found on: https://github.com/dotnet/cli/readme.md
|
|
||||||
* Source branch: rel/1.0.0
|
|
||||||
* Links to builds: LKG ?? latest green build of rel/1.0.0 (build status)
|
|
||||||
* The Repo Landing Page should be used primarily by contributors to the CLI
|
|
||||||
* Only links to "how to install" but no instructions
|
|
||||||
* First thing for "you want to get started" section should link to the getting started page on the marketing site
|
|
||||||
* Separate page that has instructions on how to install both the latest stable as well as latest development with proper warnings around it. The separate page is to really avoid the situation from people accidentally installing unstable bits (since SEO can drop them in the repo first).
|
|
||||||
|
|
||||||
# Installation modes
|
|
||||||
|
|
||||||
## Interactive installation (native installers)
|
|
||||||
These installation experiences are the primary way new users are getting the bits. They are aimed towards users kicking the tires. They are found using (not not limited to) the following means:
|
|
||||||
|
|
||||||
* Web searches
|
|
||||||
* Marketing materials
|
|
||||||
* Presentations
|
|
||||||
* Documentation
|
|
||||||
|
|
||||||
The primary way to get information about this mode of installation is the marketing website.
|
|
||||||
|
|
||||||
The native installers are:
|
|
||||||
|
|
||||||
* Deb packages for Debian-based distros
|
|
||||||
* RPM packages for RH-based distros
|
|
||||||
* Bundles for Windows
|
|
||||||
* PKG for OS X
|
|
||||||
* Homebrew for OS X
|
|
||||||
|
|
||||||
## Curl & paste installation script
|
|
||||||
### install.sh/install.ps1
|
|
||||||
This approach will be used for the below scenarios:
|
|
||||||
|
|
||||||
* Local installation (consumed by build scripts)
|
|
||||||
* Global installation (consumed by users who like command line)
|
|
||||||
* Copy & paste script: downloads and executes installation script
|
|
||||||
|
|
||||||
**TODO:** add actual commands for both Unix and Windows.
|
|
||||||
|
|
||||||
## Docker
|
|
||||||
* Link to docker hub page
|
|
||||||
* Docker images are used either as a base or as small development envs for trying out the bits
|
|
||||||
* Docker image should have stable bits
|
|
||||||
* Should point to the "stable" tag
|
|
||||||
|
|
||||||
## Acquiring through other products (VS, VS Code)
|
|
||||||
Visual Studio will chain the native installer. The version we give them is from the rel/1.0.0 branch.
|
|
||||||
|
|
||||||
VS Code extension will toast/point people to the installers (getting started page).
|
|
51
Documentation/issue-filing-guide.md
Normal file
51
Documentation/issue-filing-guide.md
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
Filing issues for .NET Core CLI
|
||||||
|
===============================
|
||||||
|
|
||||||
|
As you may notice based on our issues page, the CLI repo is what is known as a
|
||||||
|
"high-profile" and "high-volume" repo; we
|
||||||
|
get a lot of issues. This, in turn, may mean that some issues get
|
||||||
|
lost in the noise and/or are not reacted on with the needed speed.
|
||||||
|
|
||||||
|
In order to help with the above situation, we need to have a certain way to file
|
||||||
|
issues so that the core team of maintainers can react as fast as
|
||||||
|
possible and can triage effectively.
|
||||||
|
|
||||||
|
The below steps are something that we believe is not a huge increase in process,
|
||||||
|
but would help us react much faster to any issues that are filed.
|
||||||
|
|
||||||
|
1. Check if the [known issues](known-issues.md) cover the issue you are running
|
||||||
|
into. We are collecting issues that are known and that have workarounds, so it
|
||||||
|
could be that you can get unblocked pretty easily.
|
||||||
|
|
||||||
|
2. Add a label to determine which type of issue it is. If it is a defect, use
|
||||||
|
the "bug" label, if it is a suggestion for a feature, use the "enhancement"
|
||||||
|
label. This helps the team get to defects more effectively.
|
||||||
|
|
||||||
|
3. Unless you are sure in which milestone the issue falls into, leave it blank.
|
||||||
|
|
||||||
|
4. /cc the person that the issue should be assigned to (or @blackdwarf) so that person
|
||||||
|
would get notified. In this way the correct person can immediately jump on the
|
||||||
|
issue and triage it.
|
||||||
|
|
||||||
|
5. For bugs, please be as concrete as possible on what is working, what
|
||||||
|
is not working. Things like operating system, the version of the tools, the
|
||||||
|
version of the installer and when you installed all help us determine the
|
||||||
|
potential problem and allows us to easily reproduce the problem at hand.
|
||||||
|
|
||||||
|
6. For enhancements please be as concrete as possible on what is the addition
|
||||||
|
you would like to see, what scenario it covers and especially why the current
|
||||||
|
tools cannot satisfy that scenario.
|
||||||
|
|
||||||
|
Thanks and happy filing! :)
|
||||||
|
|
||||||
|
## Providing the repro for bugs
|
||||||
|
For bugs, what we need more than anything is a good repro of the defective
|
||||||
|
behavior. We would like to go towards the "clone, run, repro" model. In short:
|
||||||
|
|
||||||
|
1. If you find a bug, package up a repro in a git repo somewhere (GitHub is
|
||||||
|
usually a good place :)).
|
||||||
|
2. Inside the issue, specify what needs to be done (steps) to get an accurate
|
||||||
|
repro of the bug. Ideally, this should be "here is how to build, these are the
|
||||||
|
commands you run from the dotnet tools".
|
||||||
|
3. We use the above to get the repro, investigate and fix!
|
||||||
|
|
|
@ -17,7 +17,7 @@ Canonical scenarios
|
||||||
|
|
||||||
# Overview
|
# Overview
|
||||||
|
|
||||||
This document outlines the End-to-End canonical scenarios for the CLI tooling. The scenarios outline the planned steps that the developer needs to to to work with her applications.
|
This document outlines the End-to-End canonical scenarios for the CLI tooling. The scenarios outline the planned steps that the developer needs to do to work with her applications.
|
||||||
|
|
||||||
Each scenario is organized around a narrative, which provides an explanation on what the developers are trying to do, steps that are needed for the user to achieve the needed narrative. Steps are organized as commands that the developer would need to execute on the command line to achieve the result.
|
Each scenario is organized around a narrative, which provides an explanation on what the developers are trying to do, steps that are needed for the user to achieve the needed narrative. Steps are organized as commands that the developer would need to execute on the command line to achieve the result.
|
||||||
|
|
||||||
|
@ -440,6 +440,6 @@ mylib -> /mylib/bin/Debug/mylib.1.0.0.symbols.nupkg
|
||||||
As our developer is going further with her usage of the CLI tools, she figures out that there is an easy way to extend the CLI tools on her machine by adding project-level tools to her `project.json`. She uses the CLI to work with the tools and she is able to extend the default toolset to further fit her needs.
|
As our developer is going further with her usage of the CLI tools, she figures out that there is an easy way to extend the CLI tools on her machine by adding project-level tools to her `project.json`. She uses the CLI to work with the tools and she is able to extend the default toolset to further fit her needs.
|
||||||
|
|
||||||
## Steps
|
## Steps
|
||||||
>**TODO:** at this point, this needs more work to figure out how it will surface; it is listed her so it is not forgotten.
|
>**TODO:** at this point, this needs more work to figure out how it will surface; it is listed here so it is not forgotten.
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -10,19 +10,27 @@ There are two runtime configuration files for a particular application. Given a
|
||||||
|
|
||||||
* `MyApp.dll` - The managed assembly for `MyApp`, including an ECMA-compliant entry point token.
|
* `MyApp.dll` - The managed assembly for `MyApp`, including an ECMA-compliant entry point token.
|
||||||
* `MyApp.exe` - A copy of the `corehost.exe` executable.
|
* `MyApp.exe` - A copy of the `corehost.exe` executable.
|
||||||
* `MyApp.config.json` - An **optional** configuration file containing runtime configuration settings.
|
* `MyApp.runtimeconfig.json` - An **optional** configuration file containing runtime configuration settings.
|
||||||
* `MyApp.deps.json` - A list of dependencies, as well as compilation context data and compilation dependencies. Not technically required, but required to use the servicing or package cache/shared package install features.
|
* `MyApp.deps.json` - A list of dependencies, as well as compilation context data and compilation dependencies. Not technically required, but required to use the servicing or package cache/shared package install features.
|
||||||
|
|
||||||
|
The `MyApp.runtimeconfig.json` is designed to be user-editable (in the case of an app consumer wanting to change various CLR runtime options for an app, much like the `MyApp.exe.config` XML file works in .NET 4.x today). However, the `MyApp.deps.json` file is designed to be processed by automated tools and should not be user-edited. Having the files as separate makes this clearer. We could use a different format for the deps file, but if we're already integrating a JSON parser into the host, it seems most appropriate to re-use that here. Also, there are diagnostic benefits to being able to read the `.deps.json` file in a simple text editor.
|
||||||
|
|
||||||
|
**IMPORTANT**: Portable Applications, i.e. those published without a specific RID, have some adjustments to this spec which is covered at the end.
|
||||||
|
|
||||||
## File format
|
## File format
|
||||||
|
|
||||||
The files are both JSON files stored in UTF-8 encoding. Below are sample files. Note that not all sections are required and some will be opt-in only (see below for more details). The `.config.json` file is completely optional, and in the `.deps.json` file, only the `runtimeTarget`, `targets` and `libraries` sections are required (and within the `targets` section, only the runtime-specific target is required).
|
The files are both JSON files stored in UTF-8 encoding. Below are sample files. Note that not all sections are required and some will be opt-in only (see below for more details). The `.runtimeconfig.json` file is completely optional, and in the `.deps.json` file, only the `runtimeTarget`, `targets` and `libraries` sections are required (and within the `targets` section, only the runtime-specific target is required).
|
||||||
|
|
||||||
### [appname].config.json
|
### [appname].runtimeconfig.json
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"runtimeConfig": {
|
"runtimeOptions": {
|
||||||
"gcServer": true,
|
"gcServer": true,
|
||||||
"gcConcurrent": false
|
"gcConcurrent": false,
|
||||||
|
"framework": {
|
||||||
|
"name": "Microsoft.DotNetCore",
|
||||||
|
"version": "1.0.1"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
@ -30,12 +38,12 @@ The files are both JSON files stored in UTF-8 encoding. Below are sample files.
|
||||||
### [appname].deps.json
|
### [appname].deps.json
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"runtimeTarget": "DNXCore,Version=v5.0/osx.10.10-x64",
|
"runtimeTarget": ".NETStandardApp,Version=v1.5/osx.10.10-x64",
|
||||||
"compilationOptions": {
|
"compilationOptions": {
|
||||||
"defines": [ "DEBUG" ]
|
"defines": [ "DEBUG" ]
|
||||||
},
|
},
|
||||||
"targets": {
|
"targets": {
|
||||||
"DNXCore,Version=v5.0": {
|
".NETStandardApp,Version=v1.5": {
|
||||||
"MyApp/1.0": {
|
"MyApp/1.0": {
|
||||||
"type": "project",
|
"type": "project",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -55,7 +63,7 @@ The files are both JSON files stored in UTF-8 encoding. Below are sample files.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"DNXCore,Version=v5.0/osx.10.10-x64": {
|
".NETStandardApp,Version=v1.5/osx.10.10-x64": {
|
||||||
"MyApp/1.0": {
|
"MyApp/1.0": {
|
||||||
"type": "project",
|
"type": "project",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -104,19 +112,20 @@ The files are both JSON files stored in UTF-8 encoding. Below are sample files.
|
||||||
|
|
||||||
## Sections
|
## Sections
|
||||||
|
|
||||||
### `runtimeConfig` Section (`.config.json`)
|
### `runtimeOptions` Section (`.runtimeconfig.json`)
|
||||||
|
|
||||||
This section is copied verbatim from an identical section in the input `project.json` file (with the exception of the `target` parameter which is generated by the compilation process). The `runtimeConfig` section specifies parameters to be provided to the runtime during initialization. Known parameters include:
|
This section is copied verbatim from an identical section in the input `project.json` file (with the exception of the `target` parameter which is generated by the compilation process). The `runtimeConfig` section specifies parameters to be provided to the runtime during initialization. Known parameters include:
|
||||||
|
|
||||||
* `gcServer` - Boolean indicating if the server GC should be used (Default: _TBD_). Note: This is designed to mirror the existing [app.config](https://msdn.microsoft.com/en-us/library/ms229357.aspx) setting)
|
* `gcServer` - Boolean indicating if the server GC should be used (Default: _TBD_). Note: This is designed to mirror the existing [app.config](https://msdn.microsoft.com/en-us/library/ms229357.aspx) setting)
|
||||||
* `gcConcurrent` - Boolean indicating if background garbage collection should be used (Default: _TBD_). Note: This is designed to mirror the existing [app.config](https://msdn.microsoft.com/en-us/library/yhwwzef8.aspx) setting).
|
* `gcConcurrent` - Boolean indicating if background garbage collection should be used (Default: _TBD_). Note: This is designed to mirror the existing [app.config](https://msdn.microsoft.com/en-us/library/yhwwzef8.aspx) setting).
|
||||||
|
* `framework` - Indicates the name and version of the shared framework to use when activating the application. The presence of this section indicates that the application is a portable app designed to use a shared redistributable framework.
|
||||||
* Others _TBD_
|
* Others _TBD_
|
||||||
|
|
||||||
These settings are read by `corehost` to determine how to initialize the runtime. All versions of `corehost` **must ignore** settings in this section that they do not understand (thus allowing new settings to be added in later versions).
|
These settings are read by `corehost` to determine how to initialize the runtime. All versions of `corehost` **must ignore** settings in this section that they do not understand (thus allowing new settings to be added in later versions).
|
||||||
|
|
||||||
### `compilationOptions` Section (`.deps.json`)
|
### `compilationOptions` Section (`.deps.json`)
|
||||||
|
|
||||||
This section is copied by storing the merged `compilationOptions` from the input `project.json`. The `project.json` can define three sets of compilation options: Global, Per-Configuration, and Per-Framework. However, the `runtime.config.json` is specific to a configuration and framework so there is only one merged section here.
|
This section is copied by storing the merged `compilationOptions` from the input `project.json`. The `project.json` can define three sets of compilation options: Global, Per-Configuration, and Per-Framework. However, the `[appname].runtimeconfig.json` is specific to a configuration and framework so there is only one merged section here.
|
||||||
|
|
||||||
The exact settings found here are specific to the compiler that produced the original application binary. Some example settings include: `defines`, `languageVersion` (C#/VB), `allowUnsafe` (C#), etc.
|
The exact settings found here are specific to the compiler that produced the original application binary. Some example settings include: `defines`, `languageVersion` (C#/VB), `allowUnsafe` (C#), etc.
|
||||||
|
|
||||||
|
@ -127,7 +136,6 @@ As an example, here is a possible `project.json` file:
|
||||||
"compilationOptions": {
|
"compilationOptions": {
|
||||||
"allowUnsafe": true
|
"allowUnsafe": true
|
||||||
},
|
},
|
||||||
|
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"net451": {
|
"net451": {
|
||||||
"compilationOptions": {
|
"compilationOptions": {
|
||||||
|
@ -140,7 +148,6 @@ As an example, here is a possible `project.json` file:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"configurations": {
|
"configurations": {
|
||||||
"Debug": {
|
"Debug": {
|
||||||
"compilationOptions": {
|
"compilationOptions": {
|
||||||
|
@ -162,17 +169,17 @@ When this project is built for `dnxcore50` in the `Debug` configuration, the out
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
### `runtimeTarget` property (`.deps.json`)
|
### `runtimeTarget` Section (`.deps.json`)
|
||||||
|
|
||||||
This property contains the name of the target from `targets` that should be used by the runtime. This is present to simplify `corehost` so that it does not have to parse or understand target names.
|
This property contains the name of the target from `targets` that should be used by the runtime. This is present to simplify `corehost` so that it does not have to parse or understand target names and the meaning thereof.
|
||||||
|
|
||||||
### `targets` Section (`.deps.json`)
|
### `targets` Section (`.deps.json`)
|
||||||
|
|
||||||
This section contains subsetted data from the input `project.lock.json`.
|
This section contains subsetted data from the input `project.lock.json`.
|
||||||
|
|
||||||
Each property under `targets` describes a "target", which is a collection of libraries required by the application when run or compiled in a certain framework and platform context. A target **must** specify a Framework name, and **may** specify a Runtime Identifier. Targets without Runtime Identifiers represent the dependencies and assets used for compiling the application for a particular framework. Targets with Runtime Identifiers represent the dependencies and assets used for running the application under a particular framework and on the platform defined by the Runtime Identifier. In the example above, the `DNXCore,Version=v5.0` target lists the dependencies and assets used to compile the application for `dnxcore50`, and the `DNXCore,Version=v5.0/osx.10.10-x64` target lists the dependencies and assets used to run the application on `dnxcore50` on a 64-bit Mac OS X 10.10 machine.
|
Each property under `targets` describes a "target", which is a collection of libraries required by the application when run or compiled in a certain framework and platform context. A target **must** specify a Framework name, and **may** specify a Runtime Identifier. Targets without Runtime Identifiers represent the dependencies and assets used for compiling the application for a particular framework. Targets with Runtime Identifiers represent the dependencies and assets used for running the application under a particular framework and on the platform defined by the Runtime Identifier. In the example above, the `.NETStandardApp,Version=v1.5` target lists the dependencies and assets used to compile the application for `dnxcore50`, and the `.NETStandardApp,Version=v1.5/osx.10.10-x64` target lists the dependencies and assets used to run the application on `dnxcore50` on a 64-bit Mac OS X 10.10 machine.
|
||||||
|
|
||||||
There will always be two targets in the `runtime.config.json` file: A compilation target, and a runtime target. The compilation target will be named with the framework name used for the compilation (`DNXCore,Version=v5.0` in the example above). The runtime target will be named with the framework name and runtime identifier used to execute the application (`DNXCore,Version=v5.0/osx.10.10-x64` in the example above). However, the runtime target will also be identified by name in the `runtimeOptions` section, so that `corehost` need not parse and understand target names.
|
There will always be two targets in the `[appname].runtimeconfig.json` file: A compilation target, and a runtime target. The compilation target will be named with the framework name used for the compilation (`.NETStandardApp,Version=v1.5` in the example above). The runtime target will be named with the framework name and runtime identifier used to execute the application (`.NETStandardApp,Version=v1.5/osx.10.10-x64` in the example above). However, the runtime target will also be identified by name in the `runtimeOptions` section, so that `corehost` need not parse and understand target names.
|
||||||
|
|
||||||
The content of each target property in the JSON is a JSON object. Each property of that JSON object represents a single dependency required by the application when compiled for/run on that target. The name of the property contains the ID and Version of the dependency in the form `[Id]/[Version]`. The content of the property is another JSON object containing metadata about the dependency.
|
The content of each target property in the JSON is a JSON object. Each property of that JSON object represents a single dependency required by the application when compiled for/run on that target. The name of the property contains the ID and Version of the dependency in the form `[Id]/[Version]`. The content of the property is another JSON object containing metadata about the dependency.
|
||||||
|
|
||||||
|
@ -190,14 +197,12 @@ The `native` property of a dependency object lists the relative paths to Native
|
||||||
|
|
||||||
In compilation targets, the `runtime`, `resources` and `native` properties of a dependency are omitted, because they are not relevant to compilation. Similarly, in runtime targets, the `compile` property is omitted, because it is not relevant to runtime.
|
In compilation targets, the `runtime`, `resources` and `native` properties of a dependency are omitted, because they are not relevant to compilation. Similarly, in runtime targets, the `compile` property is omitted, because it is not relevant to runtime.
|
||||||
|
|
||||||
Only dependencies with a `type` value of `package` will have asset lists (`compile`, `runtime`, `resources`, `native`). Dependencies which are satisfied by projects will have all of their assets copied to the output directory, so they will not be listed in this file.
|
Only dependencies with a `type` value of `package` should be considered by `corehost`. There may be other items, used for other purposes (for example, Projects, Reference Assemblies, etc.
|
||||||
|
|
||||||
### `libraries` Section (`.deps.json`)
|
### `libraries` Section (`.deps.json`)
|
||||||
|
|
||||||
This section contains a union of all the dependencies found in the various targets, and contains common metadata for them. Specifically, it contains the `type`, as well as a boolean indicating if the library can be serviced (`serviceable`, only for `package`-typed libraries) and a SHA-512 hash of the package file (`sha512`, only for `package`-typed libraries.
|
This section contains a union of all the dependencies found in the various targets, and contains common metadata for them. Specifically, it contains the `type`, as well as a boolean indicating if the library can be serviced (`serviceable`, only for `package`-typed libraries) and a SHA-512 hash of the package file (`sha512`, only for `package`-typed libraries.
|
||||||
|
|
||||||
**Open Question**: We could probably exclude projects from this set in order to reduce duplication. The main reason this is a separate section is because that's how the lock file is formatted and we want to try an keep this format the same if possible.
|
|
||||||
|
|
||||||
## How the file is used
|
## How the file is used
|
||||||
|
|
||||||
The file is read by two different components:
|
The file is read by two different components:
|
||||||
|
@ -214,22 +219,23 @@ Some of the sections in the `.deps.json` file contain data used for runtime comp
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
|
"runtimeTarget": {
|
||||||
|
"name": ".NETStandardApp,Version=v1.5/osx.10.10-x64",
|
||||||
|
"portable": false
|
||||||
|
},
|
||||||
"targets": {
|
"targets": {
|
||||||
"DNXCore,Version=v5.0/osx.10.10-x64": {
|
".NETStandardApp,Version=v1.5/osx.10.10-x64": {
|
||||||
"MyApp/1.0": {
|
"MyApp/1.0": {
|
||||||
"type": "project",
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"AspNet.Mvc": "1.0.0"
|
"AspNet.Mvc": "1.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"System.Foo/1.0.0": {
|
"System.Foo/1.0.0": {
|
||||||
"type": "package",
|
|
||||||
"runtime": {
|
"runtime": {
|
||||||
"lib/dnxcore50/System.Foo.dll": { }
|
"lib/dnxcore50/System.Foo.dll": { }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"System.Banana/1.0.0": {
|
"System.Banana/1.0.0": {
|
||||||
"type": "package",
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"System.Foo": "1.0.0"
|
"System.Foo": "1.0.0"
|
||||||
},
|
},
|
||||||
|
@ -261,3 +267,110 @@ Some of the sections in the `.deps.json` file contain data used for runtime comp
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Portable Deployment Model
|
||||||
|
|
||||||
|
An application can be deployed in a "portable" deployment model. In this case, the RID-specific assets of packages are published within a folder structure that preserves the RID metadata. However, `corehost` does not use this folder structure, rather it reads data from the `.deps.json` file. Also, during deployment, the `.exe` file (`corehost` renamed) is not deployed.
|
||||||
|
|
||||||
|
In the portable deployment model, the `*.runtimeConfig.json` file will contain the `runtimeOptions.framework` section:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"runtimeOptions": {
|
||||||
|
"framework": {
|
||||||
|
"name": "NETCore.App",
|
||||||
|
"version": "1.0.1"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
This data is used to locate the shared framework folder. The exact mechanics of which version are selected are defined elsewhere, but in general, it locates the shared runtime in the `shared` folder located beside it by using the relative path `shared/[runtimeOptions.framework.name]/[runtimeOptions.framework.version]`. Once it has applied any version roll-forward logic and come to a final path to the shared framework, it locates the `[runtimeOptions.framework.name].deps.json` file within that folder and loads it **first**.
|
||||||
|
|
||||||
|
Next, the deps file from the application is loaded and merged into this deps file (this is conceptual, the host implementation doesn't necessary have to directly merge the data ;)). Data from the app-local deps file trumps data from the shared framework.
|
||||||
|
|
||||||
|
The shared framework's deps file will also contain a `runtimes` section defining the fallback logic for all RIDs known to that shared framework. For example, a shared framework deps file installed into a Ubuntu machine may look something like the following:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"runtimeTarget": {
|
||||||
|
"name": ".NETStandardApp,Version=v1.5",
|
||||||
|
"portable": false
|
||||||
|
},
|
||||||
|
"targets": {
|
||||||
|
".NETStandardApp,Version=v1.5": {
|
||||||
|
"System.Runtime/4.0.0": {
|
||||||
|
"runtime": "lib/netstandard1.5/System.Runtime.dll"
|
||||||
|
},
|
||||||
|
"... other libraries ...": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"libraries": {
|
||||||
|
"System.Runtime/4.0.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "[base64 string]"
|
||||||
|
},
|
||||||
|
"... other libraries ...": {}
|
||||||
|
},
|
||||||
|
"runtimes": {
|
||||||
|
"ubuntu.15.04-x64": [ "ubuntu.14.10-x64", "ubuntu.14.04-x64", "debian.8-x64", "linux-x64", "linux", "unix", "any", "base" ],
|
||||||
|
"ubuntu.14.10-x64": [ "ubuntu.14.04-x64", "debian.8-x64", "linux-x64", "linux", "unix", "any", "base" ],
|
||||||
|
"ubuntu.14.04-x64": [ "debian.8-x64", "linux-x64", "linux", "unix", "any", "base" ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
The host will have a RID embedded in it during compilation (for example, `win10-x64` for Windows 64-bit). It will look up the corresponding entry in the `runtimes` section to identify what the fallback list is for `win10-x64`. The fallbacks are identified from most-specific to least-specific. In the case of `win10-x64` and the example above, the fallback list is: `"win10-x64", "win10", "win81-x64", "win81", "win8-x64", "win8", "win7-x64", "win7", "win-x64", "win", "any", "base"` (note that an exact match on the RID itself is the first preference, followed by the first item in the fallback list, then the next item, and so on).
|
||||||
|
|
||||||
|
In the app-local deps file for a `portable` application, the package entries may have an additional `runtimeTargets` section detailing RID-specific assets. The `corehost` application should use this data, along with the current RID and the RID fallback data defined in the `runtimes` section of the shared framework deps file to select one **and only one** RID value out of each package individually. The most specific RID present within the package should always be selected.
|
||||||
|
|
||||||
|
Consider `corehost` built for `ubuntu.14.04-x64` and the following snippet from an app-local deps file (some sections removed for brevity).
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"targets": {
|
||||||
|
".NETStandardApp,Version=v1.5": {
|
||||||
|
"System.Data.SqlClient/4.0.0": {
|
||||||
|
"compile": {
|
||||||
|
"ref/netstandard1.5/System.Data.SqlClient.dll": {}
|
||||||
|
},
|
||||||
|
"runtimeTargets": {
|
||||||
|
"runtimes/unix/lib/netstandard1.5/System.Data.SqlClient.dll": {
|
||||||
|
"assetType": "runtime",
|
||||||
|
"rid": "unix"
|
||||||
|
},
|
||||||
|
"runtimes/win7-x64/lib/netstandard1.5/System.Data.SqlClient.dll": {
|
||||||
|
"assetType": "runtime",
|
||||||
|
"rid": "win7-x64"
|
||||||
|
},
|
||||||
|
"runtimes/win7-x86/lib/netstandard1.5/System.Data.SqlClient.dll": {
|
||||||
|
"assetType": "runtime",
|
||||||
|
"rid": "win7-x86"
|
||||||
|
},
|
||||||
|
"runtimes/win7-x64/native/sni.dll": {
|
||||||
|
"assetType": "native",
|
||||||
|
"rid": "win7-x64"
|
||||||
|
},
|
||||||
|
"runtimes/win7-x86/native/sni.dll": {
|
||||||
|
"assetType": "native",
|
||||||
|
"rid": "win7-x86"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
When setting up the TPA and native library lists, it will do the following for the `System.Data.SqlClient` entry in the example above:
|
||||||
|
|
||||||
|
1. Add all entries from the root `runtime` and `native` sections (not present in the example). (Note: This is essentially the current behavior for the existing deps file format)
|
||||||
|
2. Add all appropriate entries from the `runtimeTargets` section, based on the `rid` property of each item:
|
||||||
|
1. Attempt to locate any item for the RID `ubuntu.14.04-x64`. If any asset is matched, take **only** the items matching that RID exactly and add them to the appropriate lists based on the `assetType` value (`runtime` for managed code, `native` for native code)
|
||||||
|
2. Reattempt the previous step using the first RID in the list provided by the list in the `runtimes."ubuntu.14.04-x64"` section of the shared framework deps file. If any asset is matched, take **only** the items matching that RID exactly and add them to the appropriate lists
|
||||||
|
3. Continue to reattempt the previous search for each RID in the list, from left to right until a match is found or the list is exhausted. Exhausting the list without finding an asset, when a `runtimeTargets` section is present is **not** an error, it simply indicates that there is no need for a runtime-specific asset for that package.
|
||||||
|
|
||||||
|
Note one important aspect about asset resolution: The resolution scope is **per-package**, **not per-application**, **nor per-asset**. For each individual package, the most appropriate RID is selected, and **all** assets taken from that package must match the selected RID exactly. For example, if a package provides both a `linux-x64` and a `unix` RID (in the `ubuntu.14.04-x64` example above), **only** the `linux-x64` asset would be selected for that package. However, if a different package provides only a `unix` RID, then the asset from the `unix` RID would be selected.
|
||||||
|
|
||||||
|
The path to a runtime-specific asset is resolved in the same way as a normal asset (first check Servicing, then Package Cache, App-Local, Global Packages Location, etc.) with **one exception**. When searching app-local, rather than just looking for the simple file name in the app-local directory, a runtime-specific asset is expected to be located in a subdirectory matching the relative path information for that asset in the lock file. So the `native` `sni.dll` asset for `win7-x64` in the `System.Data.SqlClient` example above would be located at `APPROOT/runtimes/win7-x64/native/sni.dll`, rather than the normal app-local path of `APPROOT/sni.dll`.
|
||||||
|
|
17
ISSUE_TEMPLATE
Normal file
17
ISSUE_TEMPLATE
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
## Steps to reproduce
|
||||||
|
|
||||||
|
|
||||||
|
## Expected behavior
|
||||||
|
|
||||||
|
|
||||||
|
## Actual behavior
|
||||||
|
|
||||||
|
|
||||||
|
## Environment data
|
||||||
|
`dotnet --version` output:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,8 @@
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
|
||||||
# Visual Studio 14
|
# Visual Studio 14
|
||||||
VisualStudioVersion = 14.0.24720.0
|
VisualStudioVersion = 14.0.25020.0
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{ED2FE3E2-F7E7-4389-8231-B65123F2076F}"
|
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{ED2FE3E2-F7E7-4389-8231-B65123F2076F}"
|
||||||
ProjectSection(SolutionItems) = preProject
|
|
||||||
src\Microsoft.Extensions.EnvironmentAbstractions\project.json = src\Microsoft.Extensions.EnvironmentAbstractions\project.json
|
|
||||||
EndProjectSection
|
|
||||||
EndProject
|
EndProject
|
||||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{5A29E8E3-A0FC-4C57-81DD-297B56D1A119}"
|
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{5A29E8E3-A0FC-4C57-81DD-297B56D1A119}"
|
||||||
ProjectSection(SolutionItems) = preProject
|
ProjectSection(SolutionItems) = preProject
|
||||||
|
@ -66,8 +62,6 @@ Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "TestAppWithArgs", "TestAsse
|
||||||
EndProject
|
EndProject
|
||||||
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "TestAppWithContents", "TestAssets\TestProjects\TestAppWithContents\TestAppWithContents.xproj", "{0138CB8F-4AA9-4029-A21E-C07C30F425BA}"
|
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "TestAppWithContents", "TestAssets\TestProjects\TestAppWithContents\TestAppWithContents.xproj", "{0138CB8F-4AA9-4029-A21E-C07C30F425BA}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "TestProjectToProjectDependencies", "TestAssets\TestProjects\TestProjectToProjectDependencies\TestProjectToProjectDependencies.xproj", "{947DD232-8D9B-4B78-9C6A-94F807D22222}"
|
|
||||||
EndProject
|
|
||||||
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.DotNet.InternalAbstractions", "src\Microsoft.DotNet.InternalAbstractions\Microsoft.DotNet.InternalAbstractions.xproj", "{BD4F0750-4E81-4AD2-90B5-E470881792C3}"
|
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.DotNet.InternalAbstractions", "src\Microsoft.DotNet.InternalAbstractions\Microsoft.DotNet.InternalAbstractions.xproj", "{BD4F0750-4E81-4AD2-90B5-E470881792C3}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.DotNet.ProjectModel.Tests", "test\Microsoft.DotNet.ProjectModel.Tests\Microsoft.DotNet.ProjectModel.Tests.xproj", "{0745410A-6629-47EB-AAB5-08D6288CAD72}"
|
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.DotNet.ProjectModel.Tests", "test\Microsoft.DotNet.ProjectModel.Tests\Microsoft.DotNet.ProjectModel.Tests.xproj", "{0745410A-6629-47EB-AAB5-08D6288CAD72}"
|
||||||
|
@ -76,7 +70,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Installer", "Installer", "{
|
||||||
EndProject
|
EndProject
|
||||||
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.DotNet.Cli.Msi.Tests", "test\Installer\Microsoft.DotNet.Cli.Msi.Tests\Microsoft.DotNet.Cli.Msi.Tests.xproj", "{0B31C336-149D-471A-B7B1-27B0F1E80F83}"
|
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.DotNet.Cli.Msi.Tests", "test\Installer\Microsoft.DotNet.Cli.Msi.Tests\Microsoft.DotNet.Cli.Msi.Tests.xproj", "{0B31C336-149D-471A-B7B1-27B0F1E80F83}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.Extensions.DependencyModel.Tests", "..\cli1\test\Microsoft.Extensions.DependencyModel.Tests\Microsoft.Extensions.DependencyModel.Tests.xproj", "{4A4711D8-4312-49FC-87B5-4F183F4C6A51}"
|
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.Extensions.DependencyModel.Tests", "test\Microsoft.Extensions.DependencyModel.Tests\Microsoft.Extensions.DependencyModel.Tests.xproj", "{4A4711D8-4312-49FC-87B5-4F183F4C6A51}"
|
||||||
|
EndProject
|
||||||
|
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.DotNet.TestFramework", "src\Microsoft.DotNet.TestFramework\Microsoft.DotNet.TestFramework.xproj", "{0724ED7C-56E3-4604-9970-25E600611383}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "dotnet-test.UnitTests", "test\dotnet-test.UnitTests\dotnet-test.UnitTests.xproj", "{857274AC-E741-4266-A7FD-14DEE0C1CC96}"
|
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "dotnet-test.UnitTests", "test\dotnet-test.UnitTests\dotnet-test.UnitTests.xproj", "{857274AC-E741-4266-A7FD-14DEE0C1CC96}"
|
||||||
EndProject
|
EndProject
|
||||||
|
@ -444,22 +440,6 @@ Global
|
||||||
{0138CB8F-4AA9-4029-A21E-C07C30F425BA}.RelWithDebInfo|Any CPU.Build.0 = Release|Any CPU
|
{0138CB8F-4AA9-4029-A21E-C07C30F425BA}.RelWithDebInfo|Any CPU.Build.0 = Release|Any CPU
|
||||||
{0138CB8F-4AA9-4029-A21E-C07C30F425BA}.RelWithDebInfo|x64.ActiveCfg = Release|Any CPU
|
{0138CB8F-4AA9-4029-A21E-C07C30F425BA}.RelWithDebInfo|x64.ActiveCfg = Release|Any CPU
|
||||||
{0138CB8F-4AA9-4029-A21E-C07C30F425BA}.RelWithDebInfo|x64.Build.0 = Release|Any CPU
|
{0138CB8F-4AA9-4029-A21E-C07C30F425BA}.RelWithDebInfo|x64.Build.0 = Release|Any CPU
|
||||||
{947DD232-8D9B-4B78-9C6A-94F807D22222}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{947DD232-8D9B-4B78-9C6A-94F807D22222}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{947DD232-8D9B-4B78-9C6A-94F807D22222}.Debug|x64.ActiveCfg = Debug|Any CPU
|
|
||||||
{947DD232-8D9B-4B78-9C6A-94F807D22222}.Debug|x64.Build.0 = Debug|Any CPU
|
|
||||||
{947DD232-8D9B-4B78-9C6A-94F807D22222}.MinSizeRel|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{947DD232-8D9B-4B78-9C6A-94F807D22222}.MinSizeRel|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{947DD232-8D9B-4B78-9C6A-94F807D22222}.MinSizeRel|x64.ActiveCfg = Debug|Any CPU
|
|
||||||
{947DD232-8D9B-4B78-9C6A-94F807D22222}.MinSizeRel|x64.Build.0 = Debug|Any CPU
|
|
||||||
{947DD232-8D9B-4B78-9C6A-94F807D22222}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{947DD232-8D9B-4B78-9C6A-94F807D22222}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
{947DD232-8D9B-4B78-9C6A-94F807D22222}.Release|x64.ActiveCfg = Release|Any CPU
|
|
||||||
{947DD232-8D9B-4B78-9C6A-94F807D22222}.Release|x64.Build.0 = Release|Any CPU
|
|
||||||
{947DD232-8D9B-4B78-9C6A-94F807D22222}.RelWithDebInfo|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{947DD232-8D9B-4B78-9C6A-94F807D22222}.RelWithDebInfo|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
{947DD232-8D9B-4B78-9C6A-94F807D22222}.RelWithDebInfo|x64.ActiveCfg = Release|Any CPU
|
|
||||||
{947DD232-8D9B-4B78-9C6A-94F807D22222}.RelWithDebInfo|x64.Build.0 = Release|Any CPU
|
|
||||||
{BD4F0750-4E81-4AD2-90B5-E470881792C3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{BD4F0750-4E81-4AD2-90B5-E470881792C3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{BD4F0750-4E81-4AD2-90B5-E470881792C3}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{BD4F0750-4E81-4AD2-90B5-E470881792C3}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{BD4F0750-4E81-4AD2-90B5-E470881792C3}.Debug|x64.ActiveCfg = Debug|Any CPU
|
{BD4F0750-4E81-4AD2-90B5-E470881792C3}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||||
|
@ -476,6 +456,22 @@ Global
|
||||||
{BD4F0750-4E81-4AD2-90B5-E470881792C3}.RelWithDebInfo|Any CPU.Build.0 = Release|Any CPU
|
{BD4F0750-4E81-4AD2-90B5-E470881792C3}.RelWithDebInfo|Any CPU.Build.0 = Release|Any CPU
|
||||||
{BD4F0750-4E81-4AD2-90B5-E470881792C3}.RelWithDebInfo|x64.ActiveCfg = Release|Any CPU
|
{BD4F0750-4E81-4AD2-90B5-E470881792C3}.RelWithDebInfo|x64.ActiveCfg = Release|Any CPU
|
||||||
{BD4F0750-4E81-4AD2-90B5-E470881792C3}.RelWithDebInfo|x64.Build.0 = Release|Any CPU
|
{BD4F0750-4E81-4AD2-90B5-E470881792C3}.RelWithDebInfo|x64.Build.0 = Release|Any CPU
|
||||||
|
{0745410A-6629-47EB-AAB5-08D6288CAD72}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{0745410A-6629-47EB-AAB5-08D6288CAD72}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{0745410A-6629-47EB-AAB5-08D6288CAD72}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||||
|
{0745410A-6629-47EB-AAB5-08D6288CAD72}.Debug|x64.Build.0 = Debug|Any CPU
|
||||||
|
{0745410A-6629-47EB-AAB5-08D6288CAD72}.MinSizeRel|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{0745410A-6629-47EB-AAB5-08D6288CAD72}.MinSizeRel|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{0745410A-6629-47EB-AAB5-08D6288CAD72}.MinSizeRel|x64.ActiveCfg = Debug|Any CPU
|
||||||
|
{0745410A-6629-47EB-AAB5-08D6288CAD72}.MinSizeRel|x64.Build.0 = Debug|Any CPU
|
||||||
|
{0745410A-6629-47EB-AAB5-08D6288CAD72}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{0745410A-6629-47EB-AAB5-08D6288CAD72}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{0745410A-6629-47EB-AAB5-08D6288CAD72}.Release|x64.ActiveCfg = Release|Any CPU
|
||||||
|
{0745410A-6629-47EB-AAB5-08D6288CAD72}.Release|x64.Build.0 = Release|Any CPU
|
||||||
|
{0745410A-6629-47EB-AAB5-08D6288CAD72}.RelWithDebInfo|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{0745410A-6629-47EB-AAB5-08D6288CAD72}.RelWithDebInfo|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{0745410A-6629-47EB-AAB5-08D6288CAD72}.RelWithDebInfo|x64.ActiveCfg = Release|Any CPU
|
||||||
|
{0745410A-6629-47EB-AAB5-08D6288CAD72}.RelWithDebInfo|x64.Build.0 = Release|Any CPU
|
||||||
{4A4711D8-4312-49FC-87B5-4F183F4C6A51}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{4A4711D8-4312-49FC-87B5-4F183F4C6A51}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{4A4711D8-4312-49FC-87B5-4F183F4C6A51}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{4A4711D8-4312-49FC-87B5-4F183F4C6A51}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{4A4711D8-4312-49FC-87B5-4F183F4C6A51}.Debug|x64.ActiveCfg = Debug|Any CPU
|
{4A4711D8-4312-49FC-87B5-4F183F4C6A51}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||||
|
@ -524,6 +520,22 @@ Global
|
||||||
{857274AC-E741-4266-A7FD-14DEE0C1CC96}.RelWithDebInfo|Any CPU.Build.0 = Release|Any CPU
|
{857274AC-E741-4266-A7FD-14DEE0C1CC96}.RelWithDebInfo|Any CPU.Build.0 = Release|Any CPU
|
||||||
{857274AC-E741-4266-A7FD-14DEE0C1CC96}.RelWithDebInfo|x64.ActiveCfg = Release|Any CPU
|
{857274AC-E741-4266-A7FD-14DEE0C1CC96}.RelWithDebInfo|x64.ActiveCfg = Release|Any CPU
|
||||||
{857274AC-E741-4266-A7FD-14DEE0C1CC96}.RelWithDebInfo|x64.Build.0 = Release|Any CPU
|
{857274AC-E741-4266-A7FD-14DEE0C1CC96}.RelWithDebInfo|x64.Build.0 = Release|Any CPU
|
||||||
|
{0724ED7C-56E3-4604-9970-25E600611383}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{0724ED7C-56E3-4604-9970-25E600611383}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{0724ED7C-56E3-4604-9970-25E600611383}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||||
|
{0724ED7C-56E3-4604-9970-25E600611383}.Debug|x64.Build.0 = Debug|Any CPU
|
||||||
|
{0724ED7C-56E3-4604-9970-25E600611383}.MinSizeRel|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{0724ED7C-56E3-4604-9970-25E600611383}.MinSizeRel|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{0724ED7C-56E3-4604-9970-25E600611383}.MinSizeRel|x64.ActiveCfg = Debug|Any CPU
|
||||||
|
{0724ED7C-56E3-4604-9970-25E600611383}.MinSizeRel|x64.Build.0 = Debug|Any CPU
|
||||||
|
{0724ED7C-56E3-4604-9970-25E600611383}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{0724ED7C-56E3-4604-9970-25E600611383}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{0724ED7C-56E3-4604-9970-25E600611383}.Release|x64.ActiveCfg = Release|Any CPU
|
||||||
|
{0724ED7C-56E3-4604-9970-25E600611383}.Release|x64.Build.0 = Release|Any CPU
|
||||||
|
{0724ED7C-56E3-4604-9970-25E600611383}.RelWithDebInfo|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{0724ED7C-56E3-4604-9970-25E600611383}.RelWithDebInfo|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{0724ED7C-56E3-4604-9970-25E600611383}.RelWithDebInfo|x64.ActiveCfg = Release|Any CPU
|
||||||
|
{0724ED7C-56E3-4604-9970-25E600611383}.RelWithDebInfo|x64.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
@ -552,12 +564,12 @@ Global
|
||||||
{920B71D8-62DA-4F5E-8A26-926C113F1D97} = {17735A9D-BFD9-4585-A7CB-3208CA6EA8A7}
|
{920B71D8-62DA-4F5E-8A26-926C113F1D97} = {17735A9D-BFD9-4585-A7CB-3208CA6EA8A7}
|
||||||
{DA8E0E9E-A6D6-4583-864C-8F40465E3A48} = {713CBFBB-5392-438D-B766-A9A585EF1BB8}
|
{DA8E0E9E-A6D6-4583-864C-8F40465E3A48} = {713CBFBB-5392-438D-B766-A9A585EF1BB8}
|
||||||
{0138CB8F-4AA9-4029-A21E-C07C30F425BA} = {713CBFBB-5392-438D-B766-A9A585EF1BB8}
|
{0138CB8F-4AA9-4029-A21E-C07C30F425BA} = {713CBFBB-5392-438D-B766-A9A585EF1BB8}
|
||||||
{947DD232-8D9B-4B78-9C6A-94F807D22222} = {713CBFBB-5392-438D-B766-A9A585EF1BB8}
|
|
||||||
{BD4F0750-4E81-4AD2-90B5-E470881792C3} = {ED2FE3E2-F7E7-4389-8231-B65123F2076F}
|
{BD4F0750-4E81-4AD2-90B5-E470881792C3} = {ED2FE3E2-F7E7-4389-8231-B65123F2076F}
|
||||||
{4A4711D8-4312-49FC-87B5-4F183F4C6A51} = {17735A9D-BFD9-4585-A7CB-3208CA6EA8A7}
|
{4A4711D8-4312-49FC-87B5-4F183F4C6A51} = {17735A9D-BFD9-4585-A7CB-3208CA6EA8A7}
|
||||||
{0745410A-6629-47EB-AAB5-08D6288CAD72} = {17735A9D-BFD9-4585-A7CB-3208CA6EA8A7}
|
{0745410A-6629-47EB-AAB5-08D6288CAD72} = {17735A9D-BFD9-4585-A7CB-3208CA6EA8A7}
|
||||||
{0E3300A4-DF54-40BF-87D8-E7658330C288} = {17735A9D-BFD9-4585-A7CB-3208CA6EA8A7}
|
{0E3300A4-DF54-40BF-87D8-E7658330C288} = {17735A9D-BFD9-4585-A7CB-3208CA6EA8A7}
|
||||||
{0B31C336-149D-471A-B7B1-27B0F1E80F83} = {0E3300A4-DF54-40BF-87D8-E7658330C288}
|
{0B31C336-149D-471A-B7B1-27B0F1E80F83} = {0E3300A4-DF54-40BF-87D8-E7658330C288}
|
||||||
{857274AC-E741-4266-A7FD-14DEE0C1CC96} = {17735A9D-BFD9-4585-A7CB-3208CA6EA8A7}
|
{857274AC-E741-4266-A7FD-14DEE0C1CC96} = {17735A9D-BFD9-4585-A7CB-3208CA6EA8A7}
|
||||||
|
{0724ED7C-56E3-4604-9970-25E600611383} = {ED2FE3E2-F7E7-4389-8231-B65123F2076F}
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
EndGlobal
|
EndGlobal
|
||||||
|
|
34
README.md
34
README.md
|
@ -6,7 +6,14 @@ This repo contains the source code for cross-platform [.NET Core](http://github.
|
||||||
|
|
||||||
New to .NET CLI?
|
New to .NET CLI?
|
||||||
------------
|
------------
|
||||||
Check out our http://dotnet.github.io/getting-started/
|
Check out our http://dotnet.github.io/getting-started/ page.
|
||||||
|
|
||||||
|
Found an issue?
|
||||||
|
---------------
|
||||||
|
You can consult the [known issues page](Documentation/known-issues.md) to find out the current issues and
|
||||||
|
to see the workarounds.
|
||||||
|
|
||||||
|
If you don't find your issue, please file one! However, given that this is a very high-frequency repo, we've setup some [basic guidelines](Documentation/issue-filing-guide.md) to help you. Please consult those first.
|
||||||
|
|
||||||
Build Status
|
Build Status
|
||||||
------------
|
------------
|
||||||
|
@ -24,10 +31,10 @@ Installers
|
||||||
|**Installers**|[Download Debian Package](https://dotnetcli.blob.core.windows.net/dotnet/beta/Installers/Latest/dotnet-ubuntu-x64.latest.deb)|[Download Msi](https://dotnetcli.blob.core.windows.net/dotnet/beta/Installers/Latest/dotnet-win-x64.latest.exe)|[Download Pkg](https://dotnetcli.blob.core.windows.net/dotnet/beta/Installers/Latest/dotnet-osx-x64.latest.pkg) |N/A |
|
|**Installers**|[Download Debian Package](https://dotnetcli.blob.core.windows.net/dotnet/beta/Installers/Latest/dotnet-ubuntu-x64.latest.deb)|[Download Msi](https://dotnetcli.blob.core.windows.net/dotnet/beta/Installers/Latest/dotnet-win-x64.latest.exe)|[Download Pkg](https://dotnetcli.blob.core.windows.net/dotnet/beta/Installers/Latest/dotnet-osx-x64.latest.pkg) |N/A |
|
||||||
|**Binaries**|[Download tar file](https://dotnetcli.blob.core.windows.net/dotnet/beta/Binaries/Latest/dotnet-ubuntu-x64.latest.tar.gz)|[Download zip file](https://dotnetcli.blob.core.windows.net/dotnet/beta/Binaries/Latest/dotnet-win-x64.latest.zip)|[Download tar file](https://dotnetcli.blob.core.windows.net/dotnet/beta/Binaries/Latest/dotnet-osx-x64.latest.tar.gz) |[Download tar file](https://dotnetcli.blob.core.windows.net/dotnet/beta/Binaries/Latest/dotnet-centos-x64.latest.tar.gz) |
|
|**Binaries**|[Download tar file](https://dotnetcli.blob.core.windows.net/dotnet/beta/Binaries/Latest/dotnet-ubuntu-x64.latest.tar.gz)|[Download zip file](https://dotnetcli.blob.core.windows.net/dotnet/beta/Binaries/Latest/dotnet-win-x64.latest.zip)|[Download tar file](https://dotnetcli.blob.core.windows.net/dotnet/beta/Binaries/Latest/dotnet-osx-x64.latest.tar.gz) |[Download tar file](https://dotnetcli.blob.core.windows.net/dotnet/beta/Binaries/Latest/dotnet-centos-x64.latest.tar.gz) |
|
||||||
|
|
||||||
Interested in .NET Core + ASP.NET 5 RC bits?
|
Interested in .NET Core + ASP.NET Core 1.0 RC1 bits?
|
||||||
----------------------------------------
|
----------------------------------------------------
|
||||||
|
|
||||||
This toolchain is independent from the DNX-based .NET Core + ASP.NET 5 RC bits. If you are looking for .NET Core + ASP.NET 5 RC bits, you can find instructions on the http://get.asp.net/.
|
This toolchain is independent from the DNX-based .NET Core + ASP.NET Core 1.0 RC1 bits. If you are looking for .NET Core + ASP.NET Core 1.0 RC1 bits, you can find instructions on the http://get.asp.net/.
|
||||||
|
|
||||||
Docker
|
Docker
|
||||||
------
|
------
|
||||||
|
@ -53,19 +60,8 @@ Then you can either run from source or compile the sample. Running from source i
|
||||||
Compiling to IL is done using:
|
Compiling to IL is done using:
|
||||||
|
|
||||||
dotnet build
|
dotnet build
|
||||||
This will drop a binary in `./bin/[configuration]/[framework]/[binary name]` that you can just run.
|
|
||||||
|
|
||||||
Finally, you can also try out native compilation using RyuJIT as shown below:
|
This will drop a binary in `./bin/[configuration]/[framework]/[rid]/[binary name]` that you can just run.
|
||||||
|
|
||||||
dotnet build --native
|
|
||||||
|
|
||||||
The following command will perform native compilation using the C++ Codegenerator:
|
|
||||||
|
|
||||||
dotnet build --native --cpp
|
|
||||||
|
|
||||||
If you are in Windows, make sure that you run the above command inside the *VS 2015 x64 Native Tools* prompt, otherwise you will get errors. This command will drop a native single binary in `./bin/[configuration]/[framework]/native/[binary name]` that you can run.
|
|
||||||
|
|
||||||
**Note:** At this point, only the `helloworld` and `dotnetbot` samples will work with native compilation.
|
|
||||||
|
|
||||||
For more details, please refer to the [documentation](https://github.com/dotnet/corert/tree/master/Documentation).
|
For more details, please refer to the [documentation](https://github.com/dotnet/corert/tree/master/Documentation).
|
||||||
|
|
||||||
|
@ -74,11 +70,7 @@ Building from source
|
||||||
|
|
||||||
If you are building from source, take note that the build depends on NuGet packages hosted on Myget, so if it is down, the build may fail. If that happens, you can always see the [Myget status page](http://status.myget.org/) for more info.
|
If you are building from source, take note that the build depends on NuGet packages hosted on Myget, so if it is down, the build may fail. If that happens, you can always see the [Myget status page](http://status.myget.org/) for more info.
|
||||||
|
|
||||||
Known issues
|
Read over the [contributing guidelines](https://github.com/dotnet/cli/tree/master/CONTRIBUTING.md) and [developer documentation](https://github.com/dotnet/cli/tree/master/Documentation) for prerequisites for building from source.
|
||||||
------------
|
|
||||||
|
|
||||||
You can also consult the [known issues page](Documentation/known-issues.md) to find out the current issues and
|
|
||||||
to see the workarounds.
|
|
||||||
|
|
||||||
Questions & Comments
|
Questions & Comments
|
||||||
--------------------
|
--------------------
|
||||||
|
|
|
@ -9,12 +9,12 @@
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"Microsoft.FSharp.Core.netcore": "1.0.0-alpha-151221",
|
"Microsoft.FSharp.Core.netcore": "1.0.0-alpha-151221",
|
||||||
"NETStandard.Library": "1.0.0-rc2-23811"
|
"NETStandard.Library": "1.0.0-rc2-23901"
|
||||||
},
|
},
|
||||||
|
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnxcore50": {
|
"netstandardapp1.5": {
|
||||||
"imports": "portable-net45+win8"
|
"imports": "dnxcore50"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,13 +9,13 @@
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"TestLibrary": "1.0.0-*",
|
"TestLibrary": "1.0.0-*",
|
||||||
"NETStandard.Library": "1.0.0-rc2-23811",
|
"NETStandard.Library": "1.0.0-rc2-23901",
|
||||||
"Microsoft.FSharp.Core.netcore": "1.0.0-alpha-151221",
|
"Microsoft.FSharp.Core.netcore": "1.0.0-alpha-151221"
|
||||||
},
|
},
|
||||||
|
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnxcore50": {
|
"netstandardapp1.5": {
|
||||||
"imports": "portable-net45+win8"
|
"imports": "dnxcore50"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,12 +9,12 @@
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"Microsoft.FSharp.Core.netcore": "1.0.0-alpha-151221",
|
"Microsoft.FSharp.Core.netcore": "1.0.0-alpha-151221",
|
||||||
"NETStandard.Library": "1.0.0-rc2-23811"
|
"NETStandard.Library": "1.0.0-rc2-23901"
|
||||||
},
|
},
|
||||||
|
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnxcore50": {
|
"netstandardapp1.5": {
|
||||||
"imports": "portable-net45+win8"
|
"imports": "dnxcore50"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"version": "1.0.0-*",
|
"version": "1.0.0-*",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"Microsoft.FSharp.Core.netcore": "1.0.0-alpha-151221",
|
"Microsoft.FSharp.Core.netcore": "1.0.0-alpha-151221",
|
||||||
"NETStandard.Library": "1.0.0-rc2-23811"
|
"NETStandard.Library": "1.0.0-rc2-23901"
|
||||||
},
|
},
|
||||||
"compilerName": "fsc",
|
"compilerName": "fsc",
|
||||||
"compileFiles": [
|
"compileFiles": [
|
||||||
|
@ -10,8 +10,8 @@
|
||||||
"Helper.fs"
|
"Helper.fs"
|
||||||
],
|
],
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnxcore50": {
|
"netstandardapp1.5": {
|
||||||
"imports": "portable-net45+win8"
|
"imports": "dnxcore50"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
"dependencies": {
|
||||||
|
"NETStandard.Library": "1.0.0-rc2-23901",
|
||||||
|
"EmptyLibrary": "1.0.0-*"
|
||||||
|
},
|
||||||
|
"frameworks": {
|
||||||
|
"netstandardapp1.5": {
|
||||||
|
"imports": "dnxcore50"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,9 +1,10 @@
|
||||||
{
|
{
|
||||||
"dependencies": { },
|
"dependencies": { },
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnxcore50": {
|
"netstandardapp1.5": {
|
||||||
|
"imports": "dnxcore50",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"NETStandard.Library": "1.0.0-rc2-23811"
|
"NETStandard.Library": "1.0.0-rc2-23901"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dnx451": { }
|
"dnx451": { }
|
|
@ -3,7 +3,7 @@
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnxcore50": {
|
"dnxcore50": {
|
||||||
"dependencies":{
|
"dependencies":{
|
||||||
"System.Runtime": "4.0.21-beta-*",
|
"NETStandard.Library": "1.0.0-rc2-23811",
|
||||||
"System.Console": "4.0.0-beta-*"
|
"System.Console": "4.0.0-beta-*"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
"version": "1.0.0-*",
|
||||||
|
"dependencies": { },
|
||||||
|
"frameworks": {
|
||||||
|
"netstandard1.3": {
|
||||||
|
"imports": "dnxcore50",
|
||||||
|
"dependencies": {
|
||||||
|
"NETStandard.Library": "1.0.0-rc2-23901"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
"frameworks": {
|
||||||
|
"netstandardapp1.5": {
|
||||||
|
"imports": "dnxcore50",
|
||||||
|
"dependencies": {
|
||||||
|
"NETStandard.Library": "1.0.0-rc2-23901"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"dependencies": { }
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
"dependencies": {
|
||||||
|
"NETStandard.Library": "1.0.0-rc2-23901",
|
||||||
|
"Microsoft.Web.Administration": "7.0.0"
|
||||||
|
},
|
||||||
|
"frameworks": {
|
||||||
|
"netstandardapp1.5": {
|
||||||
|
"imports": "dnxcore50"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"EmptyLibrary": ""
|
"EmptyLibrary": "1.0.0-*"
|
||||||
},
|
},
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnx451": { }
|
"dnx451": { }
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"projects": ["src"]]
|
||||||
|
}
|
|
@ -0,0 +1,9 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<configuration>
|
||||||
|
<packageSources>
|
||||||
|
<!--To inherit the global NuGet package sources remove the <clear/> line below -->
|
||||||
|
<clear />
|
||||||
|
<add key="dotnet-core" value="https://dotnet.myget.org/F/dotnet-core/api/v3/index.json" />
|
||||||
|
<add key="api.nuget.org" value="https://api.nuget.org/v3/index.json" />
|
||||||
|
</packageSources>
|
||||||
|
</configuration>
|
12
TestAssets/ProjectModelServer/IncorrectGlobalJson/src/Project1/Program.cs
Executable file
12
TestAssets/ProjectModelServer/IncorrectGlobalJson/src/Project1/Program.cs
Executable file
|
@ -0,0 +1,12 @@
|
||||||
|
using System;
|
||||||
|
|
||||||
|
namespace ConsoleApplication
|
||||||
|
{
|
||||||
|
public class Program
|
||||||
|
{
|
||||||
|
public static void Main(string[] args)
|
||||||
|
{
|
||||||
|
Console.WriteLine("Hello World!");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
14
TestAssets/ProjectModelServer/IncorrectGlobalJson/src/Project1/project.json
Executable file
14
TestAssets/ProjectModelServer/IncorrectGlobalJson/src/Project1/project.json
Executable file
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
"version": "1.0.0-*",
|
||||||
|
"compilationOptions": {
|
||||||
|
"emitEntryPoint": true
|
||||||
|
},
|
||||||
|
|
||||||
|
"dependencies": {
|
||||||
|
"NETStandard.Library": "1.0.0-rc2-23811"
|
||||||
|
},
|
||||||
|
|
||||||
|
"frameworks": {
|
||||||
|
"dnxcore50": { }
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
"version": "1.0.0-*",
|
||||||
|
"dependencies": {
|
||||||
|
"
|
||||||
|
},
|
||||||
|
"frameworks": {
|
||||||
|
[]
|
||||||
|
}
|
||||||
|
}
|
|
@ -5,10 +5,12 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"NETStandard.Library": "1.0.0-rc2-23811"
|
"NETStandard.Library": "1.0.0-rc2-23901"
|
||||||
},
|
},
|
||||||
|
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnxcore50": { }
|
"netstandardapp1.5": {
|
||||||
|
"imports": "dnxcore50"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,10 +5,12 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"NETStandard.Library": "1.0.0-rc2-23811"
|
"NETStandard.Library": "1.0.0-rc2-23901"
|
||||||
},
|
},
|
||||||
|
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnxcore50": { }
|
"netstandardapp1.5": {
|
||||||
|
"imports": "dnxcore50"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,12 +5,14 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"NETStandard.Library": "1.0.0-rc2-23811",
|
"NETStandard.Library": "1.0.0-rc2-23901",
|
||||||
"dotnet-hello": { "version": "1.0.0", "target": "package" }
|
"dotnet-hello": { "version": "1.0.0", "target": "package" }
|
||||||
},
|
},
|
||||||
|
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnxcore50": { }
|
"netstandardapp1.5": {
|
||||||
|
"imports": "dnxcore50"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"testRunner": "must-be-specified-to-generate-deps",
|
"testRunner": "must-be-specified-to-generate-deps",
|
||||||
|
|
|
@ -7,11 +7,13 @@
|
||||||
"testRunner": "must-be-specified-to-generate-deps",
|
"testRunner": "must-be-specified-to-generate-deps",
|
||||||
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"NETStandard.Library": "1.0.0-rc2-23811",
|
"NETStandard.Library": "1.0.0-rc2-23901",
|
||||||
"dotnet-hello": {"version": "1.0.0", "target": "package"}
|
"dotnet-hello": {"version": "1.0.0", "target": "package"}
|
||||||
},
|
},
|
||||||
|
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnxcore50": { }
|
"netstandardapp1.5": {
|
||||||
|
"imports": "dnxcore50"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,14 +5,16 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"NETStandard.Library": "1.0.0-rc2-23811"
|
"NETStandard.Library": "1.0.0-rc2-23901"
|
||||||
},
|
},
|
||||||
|
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnxcore50": { }
|
"netstandardapp1.5": {
|
||||||
|
"imports": "dnxcore50"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"tools": {
|
"tools": {
|
||||||
"dotnet-hello": { "version": "1.0.0", "target": "package" }
|
"dotnet-hello": { "version": "2.0.0", "target": "package" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,10 +5,12 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"NETStandard.Library": "1.0.0-rc2-23811"
|
"NETStandard.Library": "1.0.0-rc2-23901"
|
||||||
},
|
},
|
||||||
|
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnxcore50": { }
|
"netstandardapp1.5": {
|
||||||
|
"imports": "dnxcore50"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="14.0.24720" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<PropertyGroup>
|
||||||
|
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0.24720</VisualStudioVersion>
|
||||||
|
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VSToolsPath)\DNX\Microsoft.DNX.Props" Condition="'$(VSToolsPath)' != ''" />
|
||||||
|
<PropertyGroup Label="Globals">
|
||||||
|
<ProjectGuid>6d84ef36-a5d5-4eaf-b38b-ced635473785</ProjectGuid>
|
||||||
|
<RootNamespace>DependencyContextValidator</RootNamespace>
|
||||||
|
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">..\..\..\..\artifacts\obj\$(MSBuildProjectName)</BaseIntermediateOutputPath>
|
||||||
|
<OutputPath Condition="'$(OutputPath)'=='' ">..\..\..\..\artifacts\bin\$(MSBuildProjectName)\</OutputPath>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<SchemaVersion>2.0</SchemaVersion>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VSToolsPath)\DNX\Microsoft.DNX.targets" Condition="'$(VSToolsPath)' != ''" />
|
||||||
|
</Project>
|
|
@ -0,0 +1,65 @@
|
||||||
|
// Copyright (c) .NET Foundation and contributors. All rights reserved.
|
||||||
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Reflection;
|
||||||
|
|
||||||
|
namespace Microsoft.Extensions.DependencyModel
|
||||||
|
{
|
||||||
|
public static class DependencyContextValidator
|
||||||
|
{
|
||||||
|
private static void Error(string message)
|
||||||
|
{
|
||||||
|
throw new InvalidOperationException(message);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void CheckMetadata(Library library)
|
||||||
|
{
|
||||||
|
if (string.Equals(library.Type, "package", StringComparison.OrdinalIgnoreCase))
|
||||||
|
{
|
||||||
|
if (string.IsNullOrWhiteSpace(library.Name) ||
|
||||||
|
string.IsNullOrWhiteSpace(library.Hash) ||
|
||||||
|
string.IsNullOrWhiteSpace(library.Version))
|
||||||
|
{
|
||||||
|
Error($"Empty metadata for {library.GetType().ToString()} {library.Name}");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void Validate(bool full)
|
||||||
|
{
|
||||||
|
var context = DependencyContext.Default;
|
||||||
|
if (full)
|
||||||
|
{
|
||||||
|
if (!context.CompileLibraries.Any())
|
||||||
|
{
|
||||||
|
Error("Compilation libraries empty");
|
||||||
|
}
|
||||||
|
foreach (var compilationLibrary in context.CompileLibraries)
|
||||||
|
{
|
||||||
|
CheckMetadata(compilationLibrary);
|
||||||
|
var resolvedPaths = compilationLibrary.ResolveReferencePaths();
|
||||||
|
foreach (var resolvedPath in resolvedPaths)
|
||||||
|
{
|
||||||
|
if (!File.Exists(resolvedPath))
|
||||||
|
{
|
||||||
|
Error($"Compilataion library resolved to non existent path {resolvedPath}");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach (var runtimeLibrary in context.RuntimeLibraries)
|
||||||
|
{
|
||||||
|
CheckMetadata(runtimeLibrary);
|
||||||
|
foreach (var runtimeAssembly in runtimeLibrary.Assemblies)
|
||||||
|
{
|
||||||
|
var assembly = Assembly.Load(runtimeAssembly.Name);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
{
|
||||||
|
"version": "1.0.0-*",
|
||||||
|
"dependencies": {
|
||||||
|
"NETStandard.Library": "1.0.0-rc2-23901",
|
||||||
|
"Microsoft.Extensions.DependencyModel": {
|
||||||
|
"target": "project",
|
||||||
|
"version": "1.0.0-*"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
"frameworks": {
|
||||||
|
"netstandardapp1.5": {
|
||||||
|
"imports": "dnxcore50"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
// Copyright (c) .NET Foundation and contributors. All rights reserved.
|
||||||
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
|
||||||
|
namespace TestApp
|
||||||
|
{
|
||||||
|
public class Program
|
||||||
|
{
|
||||||
|
public static void Main(string[] args)
|
||||||
|
{
|
||||||
|
Microsoft.Extensions.DependencyModel.DependencyContextValidator.Validate(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
{
|
||||||
|
"version": "1.0.0-*",
|
||||||
|
"compilationOptions": {
|
||||||
|
"emitEntryPoint": true,
|
||||||
|
"preserveCompilationContext": true
|
||||||
|
},
|
||||||
|
|
||||||
|
"dependencies": {
|
||||||
|
"NETStandard.Library": "1.0.0-rc2-23901",
|
||||||
|
"DependencyContextValidator": "1.0.0-*"
|
||||||
|
},
|
||||||
|
|
||||||
|
"frameworks": {
|
||||||
|
"netstandardapp1.5": {
|
||||||
|
"imports": "dnxcore50"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
// Copyright (c) .NET Foundation and contributors. All rights reserved.
|
||||||
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
|
||||||
|
namespace TestApp
|
||||||
|
{
|
||||||
|
public class Program
|
||||||
|
{
|
||||||
|
public static void Main(string[] args)
|
||||||
|
{
|
||||||
|
Microsoft.Extensions.DependencyModel.DependencyContextValidator.Validate(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
{
|
||||||
|
"version": "1.0.0-*",
|
||||||
|
"compilationOptions": {
|
||||||
|
"emitEntryPoint": true
|
||||||
|
},
|
||||||
|
|
||||||
|
"dependencies": {
|
||||||
|
"NETStandard.Library": "1.0.0-rc2-23901",
|
||||||
|
"DependencyContextValidator": "1.0.0-*"
|
||||||
|
},
|
||||||
|
|
||||||
|
"frameworks": {
|
||||||
|
"netstandardapp1.5": {
|
||||||
|
"imports": "dnxcore50"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"projects": [ ".", "../../../src" ]
|
||||||
|
}
|
|
@ -5,10 +5,12 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"NETStandard.Library": "1.0.0-rc2-23728"
|
"NETStandard.Library": "1.0.0-rc2-23901"
|
||||||
},
|
},
|
||||||
|
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnxcore50": { }
|
"netstandardapp1.5": {
|
||||||
|
"imports": "dnxcore50"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@ namespace ConsoleApplication
|
||||||
{
|
{
|
||||||
public static void Main(string[] args)
|
public static void Main(string[] args)
|
||||||
{
|
{
|
||||||
.WriteLine("NET451");
|
Console.WriteLine("NET451");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,10 +5,11 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnxcore50": {
|
"netstandardapp1.5": {
|
||||||
|
"imports": "dnxcore50",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"NETStandard.Library": "1.0.0-rc2-23811"
|
"NETStandard.Library": "1.0.0-rc2-23901"
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
"net451": { }
|
"net451": { }
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dummy1": { },
|
"net451": { },
|
||||||
"net451": { }
|
"net45": { }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,10 +8,8 @@ namespace TestApp
|
||||||
{
|
{
|
||||||
public class Program
|
public class Program
|
||||||
{
|
{
|
||||||
public static int Main(string[] args)
|
public static void Main(string[] args)
|
||||||
{
|
{
|
||||||
Console.WriteLine(TestLibrary.Helper.GetMessage());
|
|
||||||
return 100;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,10 +8,12 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"TestLibrary": "1.0.0-*",
|
"TestLibrary": "1.0.0-*",
|
||||||
|
|
||||||
"NETStandard.Library": "1.0.0-rc2-23811"
|
"NETStandard.Library": "1.0.0-rc2-23901"
|
||||||
},
|
},
|
||||||
|
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnxcore50": { }
|
"netstandardapp1.5": {
|
||||||
|
"imports": "dnxcore50"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,10 +6,12 @@
|
||||||
"additionalArguments": [ "-highentropyva+" ]
|
"additionalArguments": [ "-highentropyva+" ]
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"NETStandard.Library": "1.0.0-rc2-23811"
|
"NETStandard.Library": "1.0.0-rc2-23901"
|
||||||
},
|
},
|
||||||
|
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnxcore50": { }
|
"netstandardapp1.5": {
|
||||||
|
"imports": "dnxcore50"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
{
|
{
|
||||||
"projects": [ "."]
|
"projects": [ "." ]
|
||||||
}
|
}
|
|
@ -5,10 +5,12 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"NETStandard.Library": "1.0.0-rc2-23811"
|
"NETStandard.Library": "1.0.0-rc2-23901"
|
||||||
},
|
},
|
||||||
|
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnxcore50": { }
|
"netstandardapp1.5": {
|
||||||
|
"imports": "dnxcore50"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,10 +5,12 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"NETStandard.Library": "1.0.0-rc2-23811",
|
"NETStandard.Library": "1.0.0-rc2-23901",
|
||||||
"SharedContentA": "1.0.0-*"
|
"SharedContentA": "1.0.0-*"
|
||||||
},
|
},
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnxcore50": { }
|
"netstandardapp1.5": {
|
||||||
|
"imports": "dnxcore50"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -5,12 +5,14 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"NETStandard.Library": "1.0.0-rc2-23811"
|
"NETStandard.Library": "1.0.0-rc2-23901"
|
||||||
},
|
},
|
||||||
|
|
||||||
"content": "testcontentfile.txt",
|
"content": "testcontentfile.txt",
|
||||||
|
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnxcore50": { }
|
"netstandardapp1.5": {
|
||||||
|
"imports": "dnxcore50"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,10 +8,12 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"TestLibrary": { "target":"project", "version":"1.0.0-*" },
|
"TestLibrary": { "target":"project", "version":"1.0.0-*" },
|
||||||
|
|
||||||
"NETStandard.Library": "1.0.0-rc2-23811"
|
"NETStandard.Library": "1.0.0-rc2-23901"
|
||||||
},
|
},
|
||||||
|
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnxcore50": { }
|
"netstandardapp1.5": {
|
||||||
|
"imports": "dnxcore50"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,10 +6,12 @@
|
||||||
"additionalArguments": [ "-highentropyva+" ]
|
"additionalArguments": [ "-highentropyva+" ]
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"NETStandard.Library": "1.0.0-rc2-23808"
|
"NETStandard.Library": "1.0.0-rc2-23811"
|
||||||
},
|
},
|
||||||
|
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnxcore50": { }
|
"netstandardapp1.5": {
|
||||||
|
"imports": "dnxcore50"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,11 +5,13 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"NETStandard.Library": "1.0.0-rc2-23811"
|
"NETStandard.Library": "1.0.0-rc2-23901"
|
||||||
},
|
},
|
||||||
|
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnxcore50": { }
|
"netstandardapp1.5": {
|
||||||
|
"imports": "dnxcore50"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -8,11 +8,13 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"TestLibrary": { "target":"project", "version":"1.0.0-*" },
|
"TestLibrary": { "target":"project", "version":"1.0.0-*" },
|
||||||
|
|
||||||
"NETStandard.Library": "1.0.0-rc2-23811"
|
"NETStandard.Library": "1.0.0-rc2-23901"
|
||||||
},
|
},
|
||||||
|
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnxcore50": { }
|
"netstandardapp1.5": {
|
||||||
|
"imports": "dnxcore50"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -6,10 +6,12 @@
|
||||||
"additionalArguments": [ "-highentropyva+" ]
|
"additionalArguments": [ "-highentropyva+" ]
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"NETStandard.Library": "1.0.0-rc2-23808"
|
"NETStandard.Library": "1.0.0-rc2-23901"
|
||||||
},
|
},
|
||||||
|
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnxcore50": { }
|
"netstandardapp1.5": {
|
||||||
|
"imports": "dnxcore50"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,10 +7,12 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"TestLibraryWithAppDependency": { "target":"project", "version":"1.0.0-*" },
|
"TestLibraryWithAppDependency": { "target":"project", "version":"1.0.0-*" },
|
||||||
|
|
||||||
"NETStandard.Library": "1.0.0-rc2-23808"
|
"NETStandard.Library": "1.0.0-rc2-23901"
|
||||||
},
|
},
|
||||||
|
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnxcore50": { }
|
"netstandardapp1.5": {
|
||||||
},
|
"imports": "dnxcore50"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,10 +3,12 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"TestApp": { "target":"project", "version":"1.0.0-*" },
|
"TestApp": { "target":"project", "version":"1.0.0-*" },
|
||||||
|
|
||||||
"NETStandard.Library": "1.0.0-rc2-23808",
|
"NETStandard.Library": "1.0.0-rc2-23901"
|
||||||
},
|
},
|
||||||
|
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnxcore50": { }
|
"netstandardapp1.5": {
|
||||||
|
"imports": "dnxcore50"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
// Copyright (c) .NET Foundation and contributors. All rights reserved.
|
||||||
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
|
||||||
|
namespace TestApp
|
||||||
|
{
|
||||||
|
public class Program
|
||||||
|
{
|
||||||
|
public static int Main(string[] args)
|
||||||
|
{
|
||||||
|
Console.WriteLine(TestLibrary.Helper.GetMessage());
|
||||||
|
return 100;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -4,10 +4,11 @@
|
||||||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion>
|
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion>
|
||||||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
|
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<Import Project="$(VSToolsPath)\DNX\Microsoft.DNX.Props" Condition="'$(VSToolsPath)' != ''" />
|
<Import Project="$(VSToolsPath)\DNX\Microsoft.DNX.Props" Condition="'$(VSToolsPath)' != ''" />
|
||||||
<PropertyGroup Label="Globals">
|
<PropertyGroup Label="Globals">
|
||||||
<ProjectGuid>947dd232-8d9b-4b78-9c6a-94f807d22222</ProjectGuid>
|
<ProjectGuid>58808bbc-371e-47d6-a3d0-4902145eda4e</ProjectGuid>
|
||||||
<RootNamespace>TestProjectToProjectDependencies</RootNamespace>
|
<RootNamespace>TestApp</RootNamespace>
|
||||||
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">..\..\artifacts\obj\$(MSBuildProjectName)</BaseIntermediateOutputPath>
|
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">..\..\artifacts\obj\$(MSBuildProjectName)</BaseIntermediateOutputPath>
|
||||||
<OutputPath Condition="'$(OutputPath)'=='' ">..\..\artifacts\bin\$(MSBuildProjectName)\</OutputPath>
|
<OutputPath Condition="'$(OutputPath)'=='' ">..\..\artifacts\bin\$(MSBuildProjectName)\</OutputPath>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
|
@ -0,0 +1,19 @@
|
||||||
|
{
|
||||||
|
"version": "1.0.0-*",
|
||||||
|
"compilationOptions": {
|
||||||
|
"emitEntryPoint": true,
|
||||||
|
"preserveCompilationContext": true
|
||||||
|
},
|
||||||
|
|
||||||
|
"dependencies": {
|
||||||
|
"TestLibrary": { "target":"project", "version":"1.0.0-*" },
|
||||||
|
|
||||||
|
"NETStandard.Library": "1.0.0-rc2-23901"
|
||||||
|
},
|
||||||
|
|
||||||
|
"frameworks": {
|
||||||
|
"netstandardapp1.5": {
|
||||||
|
"imports": "dnxcore50"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1 @@
|
||||||
|
noautobuild
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,14 @@
|
||||||
|
<?xml version="1.0"?>
|
||||||
|
<doc>
|
||||||
|
<assembly>
|
||||||
|
<name>TestLibraryWithConfiguration</name>
|
||||||
|
</assembly>
|
||||||
|
<members>
|
||||||
|
<member name="M:TestLibrary.Helper.GetMessage">
|
||||||
|
<summary>
|
||||||
|
Gets the message from the helper. This comment is here to help test XML documentation file generation, please do not remove it.
|
||||||
|
</summary>
|
||||||
|
<returns>A message</returns>
|
||||||
|
</member>
|
||||||
|
</members>
|
||||||
|
</doc>
|
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
"frameworks": {
|
||||||
|
"netstandardapp1.5": {
|
||||||
|
"imports": "dnxcore50",
|
||||||
|
"bin": {
|
||||||
|
"assembly": "bin\\{configuration}\\dnxcore50\\TestLibrary.dll",
|
||||||
|
"pdb": "bin\\{configuration}\\dnxcore50\\TestLibrary.pdb"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"projects": [ "."]
|
||||||
|
}
|
|
@ -7,10 +7,13 @@
|
||||||
|
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"net451": { },
|
"net451": { },
|
||||||
"dnxcore50": {
|
"netstandardapp1.5": {
|
||||||
"imports" : "portable-net45+wp80+win8",
|
"imports": [
|
||||||
|
"dnxcore50",
|
||||||
|
"portable-net45+wp80+win8"
|
||||||
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"NETStandard.Library": "1.0.0-rc2-23811"
|
"NETStandard.Library": "1.0.0-rc2-23901"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,10 +8,13 @@
|
||||||
|
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"net451": { },
|
"net451": { },
|
||||||
"dnxcore50": {
|
"netstandardapp1.5": {
|
||||||
"imports" : "portable-net45+wp80+win8",
|
"imports": [
|
||||||
|
"dnxcore50",
|
||||||
|
"portable-net45+wp80+win8"
|
||||||
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"NETStandard.Library": "1.0.0-rc2-23811"
|
"NETStandard.Library": "1.0.0-rc2-23901"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,11 +5,13 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"NETStandard.Library": "1.0.0-rc2-23811",
|
"NETStandard.Library": "1.0.0-rc2-23901",
|
||||||
"System.Runtime.Analyzers": { "version": "1.1.0", "type": "build" }
|
"System.Runtime.Analyzers": { "version": "1.1.0", "type": "build" }
|
||||||
},
|
},
|
||||||
|
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnxcore50": { }
|
"netstandardapp1.5": {
|
||||||
|
"imports": "dnxcore50"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"additionalArguments": [ "-highentropyva+" ]
|
"additionalArguments": [ "-highentropyva+" ]
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"NETStandard.Library": "1.0.0-rc2-23811"
|
"NETStandard.Library": "1.0.0-rc2-23901"
|
||||||
},
|
},
|
||||||
"configurations": {
|
"configurations": {
|
||||||
"Test": {
|
"Test": {
|
||||||
|
@ -14,6 +14,8 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnxcore50": { }
|
"netstandardapp1.5": {
|
||||||
|
"imports": "dnxcore50"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
using System;
|
||||||
|
|
||||||
|
namespace ConsoleApplication
|
||||||
|
{
|
||||||
|
public class Program
|
||||||
|
{
|
||||||
|
public static void Main()
|
||||||
|
{
|
||||||
|
Console.WriteLine("Hello World!");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,21 @@
|
||||||
|
{
|
||||||
|
"version": "1.0.0-*",
|
||||||
|
"compilationOptions": {
|
||||||
|
"emitEntryPoint": false
|
||||||
|
},
|
||||||
|
|
||||||
|
"dependencies": { },
|
||||||
|
|
||||||
|
"frameworks": {
|
||||||
|
"net20": { },
|
||||||
|
"net35": { },
|
||||||
|
"net40": { },
|
||||||
|
"net461": { },
|
||||||
|
"netstandardapp1.5": {
|
||||||
|
"imports": "dnxcore50",
|
||||||
|
"dependencies": {
|
||||||
|
"NETStandard.Library": "1.0.0-rc2-23901"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
namespace TestMicrosoftCSharpReference
|
||||||
|
{
|
||||||
|
public class Program
|
||||||
|
{
|
||||||
|
public static int Main(string[] args)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
{
|
||||||
|
"version": "1.0.0",
|
||||||
|
"dependencies": { },
|
||||||
|
"frameworks": {
|
||||||
|
"netstandardapp1.5": {
|
||||||
|
"imports": "dnxcore50",
|
||||||
|
"dependencies": {
|
||||||
|
"NETStandard.Library": "1.0.0-rc2-23901"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"dnx451": {
|
||||||
|
"dependencies": {
|
||||||
|
"Microsoft.CSharp": "4.0.1-*"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -8,10 +8,12 @@
|
||||||
"L11": "1.0.0-*",
|
"L11": "1.0.0-*",
|
||||||
"L12": "1.0.0-*",
|
"L12": "1.0.0-*",
|
||||||
|
|
||||||
"NETStandard.Library": "1.0.0-rc2-23811"
|
"NETStandard.Library": "1.0.0-rc2-23901"
|
||||||
},
|
},
|
||||||
|
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnxcore50": { }
|
"netstandardapp1.5": {
|
||||||
|
"imports": "dnxcore50"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,10 +5,12 @@
|
||||||
"L12": "1.0.0-*",
|
"L12": "1.0.0-*",
|
||||||
"L21": "1.0.0-*",
|
"L21": "1.0.0-*",
|
||||||
|
|
||||||
"NETStandard.Library": "1.0.0-rc2-23811"
|
"NETStandard.Library": "1.0.0-rc2-23901"
|
||||||
},
|
},
|
||||||
|
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnxcore50": { }
|
"netstandardapp1.5": {
|
||||||
|
"imports": "dnxcore50"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,10 +4,12 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"L22": "1.0.0-*",
|
"L22": "1.0.0-*",
|
||||||
|
|
||||||
"NETStandard.Library": "1.0.0-rc2-23811"
|
"NETStandard.Library": "1.0.0-rc2-23901"
|
||||||
},
|
},
|
||||||
|
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnxcore50": { }
|
"netstandardapp1.5": {
|
||||||
|
"imports": "dnxcore50"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,10 +2,12 @@
|
||||||
"version": "1.0.0-*",
|
"version": "1.0.0-*",
|
||||||
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"NETStandard.Library": "1.0.0-rc2-23811"
|
"NETStandard.Library": "1.0.0-rc2-23901"
|
||||||
},
|
},
|
||||||
|
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnxcore50": { }
|
"netstandardapp1.5": {
|
||||||
|
"imports": "dnxcore50"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,10 +2,12 @@
|
||||||
"version": "1.0.0-*",
|
"version": "1.0.0-*",
|
||||||
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"NETStandard.Library": "1.0.0-rc2-23811"
|
"NETStandard.Library": "1.0.0-rc2-23901"
|
||||||
},
|
},
|
||||||
|
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnxcore50": { }
|
"netstandardapp1.5": {
|
||||||
|
"imports": "dnxcore50"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,10 +5,12 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"NETStandard.Library": "1.0.0-rc2-23811"
|
"NETStandard.Library": "1.0.0-rc2-23901"
|
||||||
},
|
},
|
||||||
|
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnxcore50": { }
|
"netstandardapp1.5": {
|
||||||
|
"imports": "dnxcore50"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,10 +5,12 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"NETStandard.Library": "1.0.0-rc2-23811"
|
"NETStandard.Library": "1.0.0-rc2-23901"
|
||||||
},
|
},
|
||||||
|
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnxcore50": { }
|
"netstandardapp1.5": {
|
||||||
|
"imports": "dnxcore50"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,10 +6,12 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"NETStandard.Library": "1.0.0-rc2-23811"
|
"NETStandard.Library": "1.0.0-rc2-23901"
|
||||||
},
|
},
|
||||||
|
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnxcore50": { }
|
"netstandardapp1.5": {
|
||||||
|
"imports": "dnxcore50"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
{
|
{
|
||||||
"projects": [ "src", "test" ],
|
"projects": [ "src", "test" ]
|
||||||
"sdk": {
|
|
||||||
"version": "1.0.0-rc2-16444"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
13
netci.groovy
13
netci.groovy
|
@ -8,7 +8,7 @@ import jobs.generation.Utilities;
|
||||||
def project = GithubProject
|
def project = GithubProject
|
||||||
def branch = GithubBranchName
|
def branch = GithubBranchName
|
||||||
|
|
||||||
def osList = ['Ubuntu', 'OSX', 'Windows_NT', 'CentOS7.1']
|
def osList = ['Ubuntu', 'OSX', 'Windows_NT', 'Windows_2016', 'CentOS7.1']
|
||||||
|
|
||||||
def static getBuildJobName(def configuration, def os) {
|
def static getBuildJobName(def configuration, def os) {
|
||||||
return configuration.toLowerCase() + '_' + os.toLowerCase()
|
return configuration.toLowerCase() + '_' + os.toLowerCase()
|
||||||
|
@ -26,20 +26,23 @@ def static getBuildJobName(def configuration, def os) {
|
||||||
|
|
||||||
// Calculate the build command
|
// Calculate the build command
|
||||||
if (os == 'Windows_NT') {
|
if (os == 'Windows_NT') {
|
||||||
buildCommand = ".\\build.cmd -Configuration ${lowerConfiguration} Default"
|
buildCommand = ".\\build.cmd -Configuration ${lowerConfiguration} -Targets Default"
|
||||||
|
}
|
||||||
|
else if (os == 'Windows_2016') {
|
||||||
|
buildCommand = ".\\build.cmd -Configuration ${lowerConfiguration} -RunInstallerTestsInDocker -Targets Default"
|
||||||
}
|
}
|
||||||
else if (os == 'Ubuntu') {
|
else if (os == 'Ubuntu') {
|
||||||
buildCommand = "./build.sh --skip-prereqs --configuration ${lowerConfiguration} --docker ubuntu Default"
|
buildCommand = "./build.sh --skip-prereqs --configuration ${lowerConfiguration} --docker ubuntu --targets Default"
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// Jenkins non-Ubuntu CI machines don't have docker
|
// Jenkins non-Ubuntu CI machines don't have docker
|
||||||
buildCommand = "./build.sh --skip-prereqs --configuration ${lowerConfiguration} Default"
|
buildCommand = "./build.sh --skip-prereqs --configuration ${lowerConfiguration} --targets Default"
|
||||||
}
|
}
|
||||||
|
|
||||||
def newJob = job(Utilities.getFullJobName(project, jobName, isPR)) {
|
def newJob = job(Utilities.getFullJobName(project, jobName, isPR)) {
|
||||||
// Set the label.
|
// Set the label.
|
||||||
steps {
|
steps {
|
||||||
if (os == 'Windows_NT') {
|
if (os == 'Windows_NT' || os == 'Windows_2016') {
|
||||||
// Batch
|
// Batch
|
||||||
batchFile(buildCommand)
|
batchFile(buildCommand)
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,21 +28,22 @@ fi
|
||||||
PACKAGE_DIR=$REPOROOT/artifacts/packages/pkg
|
PACKAGE_DIR=$REPOROOT/artifacts/packages/pkg
|
||||||
[ -d "$PACKAGE_DIR" ] || mkdir -p $PACKAGE_DIR
|
[ -d "$PACKAGE_DIR" ] || mkdir -p $PACKAGE_DIR
|
||||||
|
|
||||||
PACKAGE_NAME=$PACKAGE_DIR/dotnet-cli-x64.${DOTNET_CLI_VERSION}.pkg
|
PACKAGE_ID=dotnet-osx-x64.${DOTNET_CLI_VERSION}.pkg
|
||||||
|
PACKAGE_NAME=$PACKAGE_DIR/$PACKAGE_ID
|
||||||
#chmod -R 755 $STAGE2_DIR
|
#chmod -R 755 $STAGE2_DIR
|
||||||
pkgbuild --root $STAGE2_DIR \
|
pkgbuild --root $STAGE2_DIR \
|
||||||
--version $DOTNET_CLI_VERSION \
|
--version $DOTNET_CLI_VERSION \
|
||||||
--scripts $DIR/scripts \
|
--scripts $DIR/scripts \
|
||||||
--identifier com.microsoft.dotnet.cli.pkg.dotnet-osx-x64 \
|
--identifier com.microsoft.dotnet.cli.pkg.dotnet-osx-x64 \
|
||||||
--install-location /usr/local/share/dotnet \
|
--install-location /usr/local/share/dotnet \
|
||||||
$DIR/dotnet-osx-x64.$DOTNET_CLI_VERSION.pkg
|
$DIR/$PACKAGE_ID
|
||||||
|
|
||||||
cat $DIR/Distribution-Template | sed "/{VERSION}/s//$DOTNET_CLI_VERSION/g" > $DIR/Dist
|
cat $DIR/Distribution-Template | sed "/{VERSION}/s//$DOTNET_CLI_VERSION/g" > $DIR/Dist
|
||||||
|
|
||||||
productbuild --version $DOTNET_CLI_VERSION --identifier com.microsoft.dotnet.cli --package-path $DIR --resources $DIR/resources --distribution $DIR/Dist $PACKAGE_NAME
|
productbuild --version $DOTNET_CLI_VERSION --identifier com.microsoft.dotnet.cli --package-path $DIR --resources $DIR/resources --distribution $DIR/Dist $PACKAGE_NAME
|
||||||
|
|
||||||
#Clean temp files
|
#Clean temp files
|
||||||
rm $DIR/dotnet-osx-x64.$DOTNET_CLI_VERSION.pkg
|
rm $DIR/$PACKAGE_ID
|
||||||
rm $DIR/Dist
|
rm $DIR/Dist
|
||||||
|
|
||||||
$REPOROOT/scripts/publish/publish.sh $PACKAGE_NAME
|
$REPOROOT/scripts/publish/publish.sh $PACKAGE_NAME
|
||||||
|
|
|
@ -71,7 +71,7 @@ function RunCandle
|
||||||
-dBuildVersion="$env:DOTNET_MSI_VERSION" `
|
-dBuildVersion="$env:DOTNET_MSI_VERSION" `
|
||||||
-dDisplayVersion="$env:DOTNET_CLI_VERSION" `
|
-dDisplayVersion="$env:DOTNET_CLI_VERSION" `
|
||||||
-dReleaseSuffix="$env:ReleaseSuffix" `
|
-dReleaseSuffix="$env:ReleaseSuffix" `
|
||||||
-arch x64 `
|
-arch "$env:ARCHITECTURE" `
|
||||||
-ext WixDependencyExtension.dll `
|
-ext WixDependencyExtension.dll `
|
||||||
"$AuthWsxRoot\dotnet.wxs" `
|
"$AuthWsxRoot\dotnet.wxs" `
|
||||||
"$AuthWsxRoot\provider.wxs" `
|
"$AuthWsxRoot\provider.wxs" `
|
||||||
|
@ -136,7 +136,7 @@ function RunCandleForBundle
|
||||||
-dDisplayVersion="$env:DOTNET_CLI_VERSION" `
|
-dDisplayVersion="$env:DOTNET_CLI_VERSION" `
|
||||||
-dReleaseSuffix="$env:ReleaseSuffix" `
|
-dReleaseSuffix="$env:ReleaseSuffix" `
|
||||||
-dMsiSourcePath="$DotnetMSIOutput" `
|
-dMsiSourcePath="$DotnetMSIOutput" `
|
||||||
-arch x64 `
|
-arch "$env:ARCHITECTURE" `
|
||||||
-ext WixBalExtension.dll `
|
-ext WixBalExtension.dll `
|
||||||
-ext WixUtilExtension.dll `
|
-ext WixUtilExtension.dll `
|
||||||
-ext WixTagExtension.dll `
|
-ext WixTagExtension.dll `
|
||||||
|
@ -190,8 +190,8 @@ if(!(Test-Path $PackageDir))
|
||||||
mkdir $PackageDir | Out-Null
|
mkdir $PackageDir | Out-Null
|
||||||
}
|
}
|
||||||
|
|
||||||
$DotnetMSIOutput = Join-Path $PackageDir "dotnet-win-x64.$env:DOTNET_CLI_VERSION.msi"
|
$DotnetMSIOutput = Join-Path $PackageDir "dotnet-win-$env:ARCHITECTURE.$env:DOTNET_CLI_VERSION.msi"
|
||||||
$DotnetBundleOutput = Join-Path $PackageDir "dotnet-win-x64.$env:DOTNET_CLI_VERSION.exe"
|
$DotnetBundleOutput = Join-Path $PackageDir "dotnet-win-$env:ARCHITECTURE.$env:DOTNET_CLI_VERSION.exe"
|
||||||
|
|
||||||
Write-Host "Creating dotnet MSI at $DotnetMSIOutput"
|
Write-Host "Creating dotnet MSI at $DotnetMSIOutput"
|
||||||
Write-Host "Creating dotnet Bundle at $DotnetBundleOutput"
|
Write-Host "Creating dotnet Bundle at $DotnetBundleOutput"
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
<?if $(var.Platform)=x86?>
|
<?if $(var.Platform)=x86?>
|
||||||
<?define Program_Files="ProgramFilesFolder"?>
|
<?define Program_Files="ProgramFilesFolder"?>
|
||||||
<?define Win64AttributeValue=no?>
|
<?define Win64AttributeValue=no?>
|
||||||
<?define UpgradeCode="70A1576F-63B6-4659-9E39-25C7B769DDE5"?>
|
<?define UpgradeCode="25CAE344-22A6-422D-942E-942687C56A45"?>
|
||||||
<?elseif $(var.Platform)=x64?>
|
<?elseif $(var.Platform)=x64?>
|
||||||
<?define Program_Files="ProgramFiles64Folder"?>
|
<?define Program_Files="ProgramFiles64Folder"?>
|
||||||
<?define Win64AttributeValue=yes?>
|
<?define Win64AttributeValue=yes?>
|
||||||
|
|
|
@ -8,28 +8,23 @@ namespace Microsoft.DotNet.Cli.Build.Framework
|
||||||
{
|
{
|
||||||
public class AnsiConsole
|
public class AnsiConsole
|
||||||
{
|
{
|
||||||
private AnsiConsole(TextWriter writer, bool useConsoleColor)
|
private AnsiConsole(TextWriter writer)
|
||||||
{
|
{
|
||||||
Writer = writer;
|
Writer = writer;
|
||||||
|
|
||||||
_useConsoleColor = useConsoleColor;
|
|
||||||
if (_useConsoleColor)
|
|
||||||
{
|
|
||||||
OriginalForegroundColor = Console.ForegroundColor;
|
OriginalForegroundColor = Console.ForegroundColor;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
private int _boldRecursion;
|
private int _boldRecursion;
|
||||||
private bool _useConsoleColor;
|
|
||||||
|
|
||||||
public static AnsiConsole GetOutput(bool useConsoleColor)
|
public static AnsiConsole GetOutput()
|
||||||
{
|
{
|
||||||
return new AnsiConsole(Console.Out, useConsoleColor);
|
return new AnsiConsole(Console.Out);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static AnsiConsole GetError(bool useConsoleColor)
|
public static AnsiConsole GetError()
|
||||||
{
|
{
|
||||||
return new AnsiConsole(Console.Error, useConsoleColor);
|
return new AnsiConsole(Console.Error);
|
||||||
}
|
}
|
||||||
|
|
||||||
public TextWriter Writer { get; }
|
public TextWriter Writer { get; }
|
||||||
|
@ -38,7 +33,13 @@ namespace Microsoft.DotNet.Cli.Build.Framework
|
||||||
|
|
||||||
private void SetColor(ConsoleColor color)
|
private void SetColor(ConsoleColor color)
|
||||||
{
|
{
|
||||||
Console.ForegroundColor = (ConsoleColor)(((int)Console.ForegroundColor & 0x08) | ((int)color & 0x07));
|
const int Light = 0x08;
|
||||||
|
int c = (int)color;
|
||||||
|
|
||||||
|
Console.ForegroundColor =
|
||||||
|
c < 0 ? color : // unknown, just use it
|
||||||
|
_boldRecursion > 0 ? (ConsoleColor)(c & ~Light) : // ensure color is dark
|
||||||
|
(ConsoleColor)(c | Light); // ensure color is light
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SetBold(bool bold)
|
private void SetBold(bool bold)
|
||||||
|
@ -49,17 +50,19 @@ namespace Microsoft.DotNet.Cli.Build.Framework
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Console.ForegroundColor = (ConsoleColor)((int)Console.ForegroundColor ^ 0x08);
|
// switches on _boldRecursion to handle boldness
|
||||||
|
SetColor(Console.ForegroundColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void WriteLine(string message)
|
public void WriteLine(string message)
|
||||||
{
|
{
|
||||||
if (!_useConsoleColor)
|
Write(message);
|
||||||
{
|
Writer.WriteLine();
|
||||||
Writer.WriteLine(message);
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void Write(string message)
|
||||||
|
{
|
||||||
var escapeScan = 0;
|
var escapeScan = 0;
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
|
@ -137,7 +140,6 @@ namespace Microsoft.DotNet.Cli.Build.Framework
|
||||||
escapeScan = endIndex + 1;
|
escapeScan = endIndex + 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Writer.WriteLine();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,7 +42,13 @@ namespace Microsoft.DotNet.Cli.Build.Framework
|
||||||
BuildTarget target;
|
BuildTarget target;
|
||||||
if (!Targets.TryGetValue(name, out target))
|
if (!Targets.TryGetValue(name, out target))
|
||||||
{
|
{
|
||||||
Reporter.Verbose.WriteLine($"Skipping undefined target: {name}");
|
throw new UndefinedTargetException($"Undefined target: {name}");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!EvaluateTargetConditions(target))
|
||||||
|
{
|
||||||
|
Reporter.Verbose.WriteLine($"Skipping, Target Conditions not met: {target.Name}");
|
||||||
|
return new BuildTargetResult(target, success: true);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check if it's been completed
|
// Check if it's been completed
|
||||||
|
@ -53,7 +59,6 @@ namespace Microsoft.DotNet.Cli.Build.Framework
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// It hasn't, or we're forcing, so run it
|
// It hasn't, or we're forcing, so run it
|
||||||
result = ExecTarget(target);
|
result = ExecTarget(target);
|
||||||
_completedTargets[target.Name] = result;
|
_completedTargets[target.Name] = result;
|
||||||
|
@ -80,8 +85,36 @@ namespace Microsoft.DotNet.Cli.Build.Framework
|
||||||
Reporter.Error.WriteLine("error".Red().Bold() + $": {message}");
|
Reporter.Error.WriteLine("error".Red().Bold() + $": {message}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private bool EvaluateTargetConditions(BuildTarget target)
|
||||||
|
{
|
||||||
|
if (target == null)
|
||||||
|
{
|
||||||
|
throw new ArgumentNullException("target");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (target.Conditions == null)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach (var condition in target.Conditions)
|
||||||
|
{
|
||||||
|
if (!condition())
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
private BuildTargetResult ExecTarget(BuildTarget target)
|
private BuildTargetResult ExecTarget(BuildTarget target)
|
||||||
{
|
{
|
||||||
|
if (target == null)
|
||||||
|
{
|
||||||
|
throw new ArgumentNullException("target");
|
||||||
|
}
|
||||||
|
|
||||||
var sectionName = $"{target.Name.PadRight(_maxTargetLen + 2).Yellow()} ({target.Source.White()})";
|
var sectionName = $"{target.Name.PadRight(_maxTargetLen + 2).Yellow()} ({target.Source.White()})";
|
||||||
BuildReporter.BeginSection("TARGET", sectionName);
|
BuildReporter.BeginSection("TARGET", sectionName);
|
||||||
|
|
||||||
|
|
|
@ -52,8 +52,6 @@ namespace Microsoft.DotNet.Cli.Build.Framework
|
||||||
|
|
||||||
public int Run(string[] args)
|
public int Run(string[] args)
|
||||||
{
|
{
|
||||||
DebugHelper.HandleDebugSwitch(ref args);
|
|
||||||
|
|
||||||
var targets = new[] { BuildContext.DefaultTarget };
|
var targets = new[] { BuildContext.DefaultTarget };
|
||||||
if(args.Length > 0)
|
if(args.Length > 0)
|
||||||
{
|
{
|
||||||
|
@ -104,18 +102,40 @@ namespace Microsoft.DotNet.Cli.Build.Framework
|
||||||
private static IEnumerable<BuildTarget> CollectTargets(Type typ)
|
private static IEnumerable<BuildTarget> CollectTargets(Type typ)
|
||||||
{
|
{
|
||||||
return from m in typ.GetMethods()
|
return from m in typ.GetMethods()
|
||||||
let attr = m.GetCustomAttribute<TargetAttribute>()
|
let targetAttribute = m.GetCustomAttribute<TargetAttribute>()
|
||||||
where attr != null
|
let conditionalAttributes = m.GetCustomAttributes<TargetConditionAttribute>(false)
|
||||||
select CreateTarget(m, attr);
|
where targetAttribute != null
|
||||||
|
select CreateTarget(m, targetAttribute, conditionalAttributes);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static BuildTarget CreateTarget(MethodInfo m, TargetAttribute attr)
|
private static BuildTarget CreateTarget(
|
||||||
|
MethodInfo methodInfo,
|
||||||
|
TargetAttribute targetAttribute,
|
||||||
|
IEnumerable<TargetConditionAttribute> targetConditionAttributes)
|
||||||
{
|
{
|
||||||
|
var name = targetAttribute.Name ?? methodInfo.Name;
|
||||||
|
|
||||||
|
var conditions = ExtractTargetConditionsFromAttributes(targetConditionAttributes);
|
||||||
|
|
||||||
return new BuildTarget(
|
return new BuildTarget(
|
||||||
attr.Name ?? m.Name,
|
name,
|
||||||
$"{m.DeclaringType.FullName}.{m.Name}",
|
$"{methodInfo.DeclaringType.FullName}.{methodInfo.Name}",
|
||||||
attr.Dependencies,
|
targetAttribute.Dependencies,
|
||||||
(Func<BuildTargetContext, BuildTargetResult>)m.CreateDelegate(typeof(Func<BuildTargetContext, BuildTargetResult>)));
|
conditions,
|
||||||
|
(Func<BuildTargetContext, BuildTargetResult>)methodInfo.CreateDelegate(typeof(Func<BuildTargetContext, BuildTargetResult>)));
|
||||||
|
}
|
||||||
|
|
||||||
|
private static IEnumerable<Func<bool>> ExtractTargetConditionsFromAttributes(
|
||||||
|
IEnumerable<TargetConditionAttribute> targetConditionAttributes)
|
||||||
|
{
|
||||||
|
if (targetConditionAttributes == null || targetConditionAttributes.Count() == 0)
|
||||||
|
{
|
||||||
|
return Enumerable.Empty<Func<bool>>();
|
||||||
|
}
|
||||||
|
|
||||||
|
return targetConditionAttributes
|
||||||
|
.Select<TargetConditionAttribute, Func<bool>>(c => c.EvaluateCondition)
|
||||||
|
.ToArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
private string GenerateSourceString(string file, int? line, string member)
|
private string GenerateSourceString(string file, int? line, string member)
|
||||||
|
|
|
@ -9,15 +9,22 @@ namespace Microsoft.DotNet.Cli.Build.Framework
|
||||||
public string Name { get; }
|
public string Name { get; }
|
||||||
public string Source { get; }
|
public string Source { get; }
|
||||||
public IEnumerable<string> Dependencies { get; }
|
public IEnumerable<string> Dependencies { get; }
|
||||||
|
public IEnumerable<Func<bool>> Conditions { get; }
|
||||||
public Func<BuildTargetContext, BuildTargetResult> Body { get; }
|
public Func<BuildTargetContext, BuildTargetResult> Body { get; }
|
||||||
|
|
||||||
public BuildTarget(string name, string source) : this(name, source, Enumerable.Empty<string>(), null) { }
|
public BuildTarget(string name, string source) : this(name, source, Enumerable.Empty<string>(), Enumerable.Empty<Func<bool>>(), null) { }
|
||||||
public BuildTarget(string name, string source, IEnumerable<string> dependencies) : this(name, source, dependencies, null) { }
|
public BuildTarget(string name, string source, IEnumerable<string> dependencies) : this(name, source, dependencies, Enumerable.Empty<Func<bool>>(), null) { }
|
||||||
public BuildTarget(string name, string source, IEnumerable<string> dependencies, Func<BuildTargetContext, BuildTargetResult> body)
|
public BuildTarget(
|
||||||
|
string name,
|
||||||
|
string source,
|
||||||
|
IEnumerable<string> dependencies,
|
||||||
|
IEnumerable<Func<bool>> conditions,
|
||||||
|
Func<BuildTargetContext, BuildTargetResult> body)
|
||||||
{
|
{
|
||||||
Name = name;
|
Name = name;
|
||||||
Source = source;
|
Source = source;
|
||||||
Dependencies = dependencies;
|
Dependencies = dependencies;
|
||||||
|
Conditions = conditions;
|
||||||
Body = body;
|
Body = body;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue