Skip to content

Create and pack empty file to add TFM dependency to Umbraco.Cms and Umbraco.Cms.Targets#13475

Merged
bergmania merged 1 commit intorelease/11.0from
v11/feature/tfm-dependency
Nov 28, 2022
Merged

Create and pack empty file to add TFM dependency to Umbraco.Cms and Umbraco.Cms.Targets#13475
bergmania merged 1 commit intorelease/11.0from
v11/feature/tfm-dependency

Conversation

@ronaldbarendse
Copy link
Copy Markdown
Contributor

@ronaldbarendse ronaldbarendse commented Nov 24, 2022

Prerequisites

  • I have added steps to test this contribution in the description below

Description

Both the Umbraco.Cms and Umbraco.Cms.Targets packages don't include any framework specific contents, causing MSBuild to raise a NU5128 warning during packaging and NuGet.org not showing any supported frameworks.

This PR uses the Add an empty _._ file solution from the linked MS documentation:

If your package does not contain any assemblies, such as a meta-package, consider adding an empty _._ file to the lib/<tfm>/ directories for the TFMs listed in the warning message.

Instead of creating and adding this file to the repository (and updating the path when the target framework changes), I've added an MSBuild task that automatically takes care of this.

Testing can be done by inspecting the generated NuGet files and optionally adding them to an empty .NET 7 project.

@bergmania bergmania merged commit a336160 into release/11.0 Nov 28, 2022
@bergmania bergmania deleted the v11/feature/tfm-dependency branch November 28, 2022 18:48
nikolajlauridsen added a commit that referenced this pull request Dec 1, 2022
* update marketplace url to its final, live url

* Added various Block Grid translations (EN & NL) (#13488)

* Added various translations

* Added another translation

* Change request

* Revert breaking changes adding IContextCache to deploy connectors (#13489)

* Remove breaking changes in Deploy connector interfaces

* Add extension methods for calling the new interface methods in a backwards-compatible way

* Create and pack empty file to add TFM dependency (#13475)

* Change login image to new SVG. (#13493)

* Only add global usings when ImplicitUsings is enabled (#13491)

* bump to rc6

* V11: Allow changing logging directory from configuration (#13485)

* Allow changing logging directory from configuration

* Clean up

* Missing return statement

* Apply suggestions from code review

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>

* Update src/Umbraco.Core/Constants-SystemDirectories.cs

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>

* Move login.svg file

* Make sure contexbar fits within the available space (#13467)

* Make sure contexbar fits within the available space

* Ensuring context bar moves above, no matter size of it.

* Fixing apperance of connection-fixers

* Info panes not loading prerequisites (#13486)

* load relations immediately on init and remove call to non-existing function `appTabChange` on destroy

* load relations immediately on init and remove now not-used eventsService

* do not set layout gaps (#13496)

* Nuget updates (#13478)

* Updated nuget packages

* Remove npoco update

Co-authored-by: nikolajlauridsen <nikolajlauridsen@protonmail.ch>

* Nuget updates (#13478)

* Updated nuget packages

* Remove npoco update

Co-authored-by: nikolajlauridsen <nikolajlauridsen@protonmail.ch>

* Bump version to final

* V11/cherry pick flaky test (#13506)

* V10/feature/fixing flaky acceptance test (#13473)

* Bumped version

* Handle external authentication providers (#13487)

Co-authored-by: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>
Co-authored-by: Corné Hoskam <choskam@hotmail.com>
Co-authored-by: Ronald Barendse <ronald@barend.se>
Co-authored-by: Niels Lyngsø <nsl@umbraco.dk>
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
Co-authored-by: nikolajlauridsen <nikolajlauridsen@protonmail.ch>
Co-authored-by: Andreas Zerbst <73799582+andr317c@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants