forked from Fody/Costura
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure AppContext.TargetFrameworkName is set in the module initializer
Since Costura.Template targets .NET Standard 2.0 we test `AppContext.TargetFrameworkName == null` which translates to `AppDomain.CurrentDomain.SetupInformation.TargetFrameworkName == null` on .NET Framework and `Assembly.GetEntryAssembly()?.GetCustomAttribute<TargetFrameworkAttribute>()?.FrameworkName == null` on .NET Core. Fixes Fody#633
- Loading branch information
Showing
2 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters