https://github.com/kolosovpetro/webconfigtransformcore
This is a cross-platform command line tool to run an ASP .NET Web.config transformation. Inspired by https://github.com/erichexter/WebConfigTransformRunner
https://github.com/kolosovpetro/webconfigtransformcore
asp-net webconfig xml-parsing
Last synced: 8 months ago
JSON representation
This is a cross-platform command line tool to run an ASP .NET Web.config transformation. Inspired by https://github.com/erichexter/WebConfigTransformRunner
- Host: GitHub
- URL: https://github.com/kolosovpetro/webconfigtransformcore
- Owner: kolosovpetro
- License: gpl-2.0
- Created: 2023-08-08T12:07:36.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-08-10T14:28:34.000Z (about 2 years ago)
- Last Synced: 2025-01-16T06:15:29.718Z (9 months ago)
- Topics: asp-net, webconfig, xml-parsing
- Language: C#
- Homepage: https://www.nuget.org/packages/web.config.transform.tool
- Size: 62.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Web Config Transform Core
Inspired by https://github.com/erichexter/WebConfigTransformRunner.
This is a cross-platform command line tool to run an ASP .NET Web.config transformation
## Used dependencies
- `Microsoft.Web.Xdt`
## Command to build and publish
- `dotnet publish "WebConfigTransformCore/WebConfigTransformCore.csproj" --self-contained --runtime win-x64 -c Release -o ./publish.win-x64 -p:PublishTrimmed=true -p:PublishSingleFile=true`
- `dotnet publish "WebConfigTransformCore/WebConfigTransformCore.csproj" --self-contained --runtime linux-x64 -c Release -o ./publish.linux-x64 -p:PublishTrimmed=true -p:PublishSingleFile=true`
- `dotnet publish "WebConfigTransformCore/WebConfigTransformCore.csproj" --self-contained --runtime osx-x64 -c Release -o./publish.osx-x64 -p:PublishTrimmed=true -p:PublishSingleFile=true`## To Test
- Build using above commands
- Run `.\WebConfigTransformCore.exe "../TestData/SetAttributesExample/Web.config" "../TestData/SetAttributesExample/Web.Debug.config" "../TestData/SetAttributesExample/NewWeb.Debug.config"`
- Run `.\WebConfigTransformCore.exe "../TestData/HRBExample/NASS.ThirdPartyUploadScheduler.config" "../TestData/HRBExample/NASS.ThirdPartyUploadScheduler.Prod.config" "../TestData/HRBExample/NewNASS.ThirdPartyUploadScheduler.config"`## Documentation
- https://learn.microsoft.com/en-us/previous-versions/aspnet/dd465326(v=vs.110)
- https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/transform-webconfig?view=aspnetcore-7.0## Icon credentials