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

How to use a packagemap.json in my project? #1570

Closed
claudeHasler opened this issue Jun 20, 2024 · 2 comments
Closed

How to use a packagemap.json in my project? #1570

claudeHasler opened this issue Jun 20, 2024 · 2 comments
Labels
area:Mappings API / Package Mapping

Comments

@claudeHasler
Copy link

I'm trying to automate the upgrade of a very large application with many .csproj using the upgrade-assistant CLI.
I'd like to force certain packages in those .csproj to be updated to certain versions.

The packagemap.json feature seems to support this functionality, But I can't figure out where this file must be placed to be picked up by the cli.

I am running a command like this:

upgrade-assistant upgrade `
			SomeProj/.csproj `
			--non-interactive `
			--operation Inplace `
			--targetFramework net8.0

But my custom defined packagemap.json file is never respected

Where do the packagemap files go? Is this documented anywhere? Is this even how these files are intended to be used?

@mgoertz-msft
Copy link
Contributor

Take a look at this blog post for how to test package map changes locally: https://devblogs.microsoft.com/dotnet/announcing-api-map-support-for-ua/

@mgoertz-msft mgoertz-msft added the area:Mappings API / Package Mapping label Jul 16, 2024
@DianaSoltani
Copy link
Contributor

Guidance has been provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:Mappings API / Package Mapping
Projects
None yet
Development

No branches or pull requests

3 participants