Volma
Volma

Reputation: 1345

Do NuGet config file transformations work in ASP.Net Core projects?

I have a NuGet package that I developed, and that package contains web.config.transform file. When I install the package in a regular Asp.Net web project, the content from the .transform file is merged with the web.config (as expected). However, when I try to install the same package in an Asp.Net Core project, the web.config remains unchanged. Do config transforms even work with NuGet + Asp.Net Core?

Upvotes: 0

Views: 498

Answers (1)

lazy
lazy

Reputation: 531

For similar issue there is a community created cli command at https://github.com/nil4/dotnet-transform-xdt which allows you to transform xdt using command line.

Include above package in tools and you may trigger it post install of your package for applying xdt transform.

Upvotes: 1

Related Questions