Skip to content
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

System.Management.Automation 7.3.1 depends on a missing nuget package #18782

Closed
5 tasks done
daviddenis-stx opened this issue Dec 13, 2022 · 7 comments · Fixed by #18806
Closed
5 tasks done

System.Management.Automation 7.3.1 depends on a missing nuget package #18782

daviddenis-stx opened this issue Dec 13, 2022 · 7 comments · Fixed by #18806
Labels
Resolution-Fixed The issue is fixed. WG-DevEx-SDK hosting PowerShell as a runtime, PowerShell's APIs, PowerShell Standard, or development of modules

Comments

@daviddenis-stx
Copy link

Prerequisites

Steps to reproduce

Building a project dependent on System.Management.Automation 7.3.1 will complain about missing System.Runtime.CompilerServices 7.0.0-preview.3.22119.2 (which is not pushed to nuget.org at the time of writing this, only preview.2 is). It's perhaps transient ?

A quick workaround is to add https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet7/nuget/v2 to your NuGet.Config

Expected behavior

Should find the dependant System.Runtime.CompilerServices.Unsafe package, and build correctly

Actual behavior

error NU1102: Unable to find package System.Runtime.CompilerServices.Unsafe with version (>= 7.0.0-preview.3.22119.2)
error NU1102:   - Found 58 version(s) in nuget-org [ Nearest version: 7.0.0-preview.2.22152.2 ]

Error details

No response

Environment data

7.3.1

Visuals

No response

@daviddenis-stx daviddenis-stx added the Needs-Triage The issue is new and needs to be triaged by a work group. label Dec 13, 2022
@nightroman
Copy link

nightroman commented Dec 13, 2022

Same here. Looking forward for the update because 7.3.1 is needed for

Microsoft Security Advisory CVE-2022-41076: PowerShell Remote Code Execution Vulnerability

@Balkoth
Copy link

Balkoth commented Dec 14, 2022

Error NU1102 Unable to find package System.Runtime.CompilerServices.Unsafe with version (>= 7.0.0-preview.3.22119.2)

  • Found 58 version(s) in nuget.org [ Nearest version: 7.0.0-preview.2.22152.2 ]
  • Found 0 version(s) in Microsoft Visual Studio Offline Packages

@iSazonov iSazonov added the WG-DevEx-SDK hosting PowerShell as a runtime, PowerShell's APIs, PowerShell Standard, or development of modules label Dec 14, 2022
@TravisEz13
Copy link
Member

Until we have a better fix, you can work around this by adding the following line to the .csproj that references the SDK or SMA.

<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="7.0.0-preview.2.22152.2" NoWarn="NU1605" />

@jak-hammond
Copy link

I came across this KB article stating that no new versions of this package will be created, so will that ultimately lead to it's removal as a dependency here and be covered by the main framework?

@ghost ghost added the In-PR Indicates that a PR is out for the issue label Dec 15, 2022
@adityapatwardhan
Copy link
Member

@jak-hammond thanks for the link to the KB article. I have created PR to remove the dependency.

@ghost ghost added Resolution-Fixed The issue is fixed. and removed In-PR Indicates that a PR is out for the issue Needs-Triage The issue is new and needs to be triaged by a work group. labels Dec 15, 2022
@ghost
Copy link

ghost commented Dec 20, 2022

🎉This issue was addressed in #18806, which has now been successfully released as v7.4.0-preview.1.:tada:

Handy links:

@nozakikouji

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution-Fixed The issue is fixed. WG-DevEx-SDK hosting PowerShell as a runtime, PowerShell's APIs, PowerShell Standard, or development of modules
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants