Skip to content

Add closure validation via ref/runtime packs#72

Merged
dagood merged 1 commit intodotnet:masterfrom
dagood:ref-closure-validation
Oct 22, 2019
Merged

Add closure validation via ref/runtime packs#72
dagood merged 1 commit intodotnet:masterfrom
dagood:ref-closure-validation

Conversation

@dagood
Copy link
Member

@dagood dagood commented Oct 18, 2019

Fixes #3. Turns ref/runtime closure validation back on in this repo, using the NETCoreApp targeting and runtime packs rather than a project reference.

For reference, the project-to-project way of doing this is still active in core-setup 3.0/3.1 currently: Microsoft.WindowsDesktop.App.pkgproj#L43.

This adds the dependency on Core-Setup, which I set up with a coherent parent. (See #20. When WinForms updates to a new Core-Setup, WPF and now WindowsDesktop will also use that version to stay coherent.)

PackageDownload is the way to get framework packs--they aren't allowed in PackageReferences. NuGet only downloads them into the cache, I have to resolve assets myself. It also requires an exact-match version, which is the []. This has the side effect of being easy to understand. 🙂

@dagood dagood requested a review from MichaelSimons October 18, 2019 22:34
@dagood dagood self-assigned this Oct 18, 2019
@dagood dagood merged commit b5e32a3 into dotnet:master Oct 22, 2019
@dagood dagood deleted the ref-closure-validation branch October 22, 2019 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix package validation (reference closure check) to work with nonlocal NETCoreApp

2 participants