-
Notifications
You must be signed in to change notification settings - Fork 395
Upgrade 'System.Automation.Management' NuGet package of version 6.0.0-alpha13 to official version 6.0.2 from powershell-core feed, which requires upgrade to netstandard2.0 #919
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 6 commits
a17699b
a48573c
83fcb7b
7403578
81bdc15
511216c
4767772
52d8521
d31a55b
041c2a2
5e73dd9
e59178c
09b8822
5bb6fed
c13f87b
0c59367
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1131,7 +1131,7 @@ private List<ExternalRule> GetExternalRule(string[] moduleNames) | |
{ | ||
dynamic description = helpContent[0].Properties["Description"]; | ||
|
||
if (null != description && null != description.Value && description.Value.GetType().IsArray) | ||
if (description != null && description.Value != null && description.Value.GetType().IsArray) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is just to highlight why I needed the NuGet package for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yup - I found this as well when I was looking at building against PowerShellStandard.Library |
||
{ | ||
desc = description.Value[0].Text; | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,20 +2,16 @@ | |
|
||
<PropertyGroup> | ||
<VersionPrefix>1.16.1</VersionPrefix> | ||
<TargetFrameworks>netstandard1.6;net451</TargetFrameworks> | ||
<TargetFrameworks>netstandard2.0;net451</TargetFrameworks> | ||
<AssemblyName>Microsoft.Windows.PowerShell.ScriptAnalyzer.BuiltinRules</AssemblyName> | ||
<PackageId>Rules</PackageId> | ||
<PackageTargetFallback Condition=" '$(TargetFramework)' == 'netstandard1.6' ">$(PackageTargetFallback)</PackageTargetFallback> | ||
<RuntimeFrameworkVersion Condition=" '$(TargetFramework)' == 'netstandard1.6' ">1.0.4</RuntimeFrameworkVersion> | ||
<PackageTargetFallback Condition=" '$(TargetFramework)' == 'netstandard2.0' ">$(PackageTargetFallback)</PackageTargetFallback> | ||
<RuntimeFrameworkVersion Condition=" '$(TargetFramework)' == 'netstandard2.0' ">1.0.4</RuntimeFrameworkVersion> | ||
<RootNamespace>Microsoft.Windows.PowerShell.ScriptAnalyzer</RootNamespace> <!-- Namespace needs to match Assembly name for ressource binding --> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Engine\Engine.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="System.Management.Automation" Version="6.0.0-alpha13" /> | ||
<PackageReference Include="Newtonsoft.Json" Version="10.0.3" /> | ||
</ItemGroup> | ||
|
||
|
@@ -30,14 +26,10 @@ | |
<DebugType>portable</DebugType> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard1.6' "> | ||
<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' "> | ||
<DefineConstants>$(DefineConstants);CORECLR</DefineConstants> | ||
</PropertyGroup> | ||
|
||
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard1.6' "> | ||
<Compile Remove="UseSingularNouns.cs" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Compile Update="Strings.Designer.cs"> | ||
<DesignTime>True</DesignTime> | ||
|
@@ -53,6 +45,17 @@ | |
</EmbeddedResource> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition="'$(TargetFramework)' == 'net451'"> | ||
<PackageReference Include="System.Management.Automation" Version="6.0.0-alpha13" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'"> | ||
<PackageReference Include="System.Management.Automation" Version="6.0.2" /> | ||
<PackageReference Include="Microsoft.Management.Infrastructure" Version="1.0.0-alpha08" /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a good example to show that the old There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. could this just be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, I think it is reasonable to always take the latest version of a pre-release package. |
||
<PackageReference Include="System.Reflection.TypeExtensions" Version="4.4.0" /> | ||
<Compile Remove="UseSingularNouns.cs" /> | ||
</ItemGroup> | ||
|
||
<PropertyGroup Condition=" '$(Configuration)' == 'PSV3Release' "> | ||
<DefineConstants>$(DefineConstants);PSV3;PSV5</DefineConstants> | ||
</PropertyGroup> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since this is really about full CLR should we still point at this? Would Microsoft.PowerShell.5.ReferenceAssemblies be better? (or Microsoft.PowerShell.3.ReferenceAssemblies) rather than pointing off to that alpha13 thing?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At the moment this PR changes it only for the coreclr but I can look into how to do it for full CLR. I first wanted to rather start with the simpler task but maybe it is better to do both in one go.