styling
This commit is contained in:
parent
ccb3d06f23
commit
ceb31d8f30
1 changed files with 3 additions and 2 deletions
|
@ -74,7 +74,8 @@ namespace Microsoft.DotNet.Cli.Compiler.Common
|
||||||
|
|
||||||
if (SupportsTargetFrameworkAttribute(metadata))
|
if (SupportsTargetFrameworkAttribute(metadata))
|
||||||
{
|
{
|
||||||
attributes[typeof(TargetFrameworkAttribute)] = EscapeCharacters(metadata.TargetFramework); // TargetFrameworkAttribute only exists since .NET 4.0
|
// TargetFrameworkAttribute only exists since .NET 4.0
|
||||||
|
attributes[typeof(TargetFrameworkAttribute)] = EscapeCharacters(metadata.TargetFramework);
|
||||||
};
|
};
|
||||||
|
|
||||||
return attributes;
|
return attributes;
|
||||||
|
@ -88,7 +89,7 @@ namespace Microsoft.DotNet.Cli.Compiler.Common
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
NuGetFramework targetFramework = NuGetFramework.Parse(metadata.TargetFramework);
|
var targetFramework = NuGetFramework.Parse(metadata.TargetFramework);
|
||||||
if (!targetFramework.IsDesktop())
|
if (!targetFramework.IsDesktop())
|
||||||
{
|
{
|
||||||
// assuming .NET Core, which should support .NET 4.0 attributes
|
// assuming .NET Core, which should support .NET 4.0 attributes
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue