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

Running a script after package installation doesn't work on .NET Core 3.0 #9462

Closed
ghost1372 opened this issue Apr 22, 2020 · 3 comments
Closed
Labels
Resolution:ByDesign This issue appears to be ByDesign Style:PackageReference

Comments

@ghost1372
Copy link

Hi, I have a script that needs to be run after the package is installed. This works well in .NET Framework. But in .NET Core 3.0, the script does not run

NuGet product used (NuGet.exe | VS UI | Package Manager Console | dotnet.exe):

dotnet.exe --version (if appropriate): 5.3.1.6268

VS version (if appropriate): 2019 16.6 pre 3

OS version (i.e. win10 v1607 (14393.321)): win 10 - 18363

@kartheekp-ms
Copy link
Contributor

@ghost1372 - Please provide us repro steps and a sample project (if possible) so that we can understand the issue better and prioritize accordingly.

@kartheekp-ms kartheekp-ms changed the title Script not work on Dot Net Core 3.0 Running a script after package installation doesn't work on .NET Core 3.0 Oct 19, 2020
@ghost1372
Copy link
Author

Hi @kartheekp-ms Sorry for the delay in reply

I attached an example project. Please create a nuget package with *.nuspec file.
After creating the package, please install it on a WPF (.Net Core) project
After installation, the script must be run and the site opened
But nothing happens
Nuget.zip

@heng-liu heng-liu added WaitingForClientTeam Customer replied, needs attention from client team. Do not apply this label manually. and removed WaitingForCustomer Applied when a NuGet triage person needs more info from the OP labels Jun 13, 2021
@nkolev92
Copy link
Member

Hey @ghost1372

Install scripts are not supported in PackageReference (the package management style under .NET Core).

Refer to #5963.

@ghost ghost removed the WaitingForClientTeam Customer replied, needs attention from client team. Do not apply this label manually. label Nov 23, 2021
@nkolev92 nkolev92 added Resolution:ByDesign This issue appears to be ByDesign and removed Triage:NeedsRepro Triage:NeedsMoreInfo labels Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution:ByDesign This issue appears to be ByDesign Style:PackageReference
Projects
None yet
Development

No branches or pull requests

5 participants