Should the web.config be transformed before or after the MSBuild task?

Piers Karsenbarg

I have a custom MSBuild script and in that, I'm using the MSBuild task to compile a solution.

In that solution I have multiple projects and some of them have web.config's that need to be transformed at some stage in the process. The transformation is currently just the connection strings, but that may change.

So, should the web.config's be transformed before or after the MSBuild task?

blorkfish

It should not matter.
The web.config is only read in at run-time, and does not effect the outcome of a pure compilation step.

If you are, however, packaging a web-site, by using MsBuild /T:Package, then the transform occurs as part of the packaging process, which occurs after the compilation step completes.

Hope this helps.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Perform a web.config transform before publishing with MSBuild

From Dev

Perform a web.config transform before publishing with MSBuild

From Dev

Web.config is not transformed when debugging code

From Dev

TFS 2012 not copying transformed Web.Config to _PublishedWebsite

From Dev

How to get transformed value of key from Web.config

From Dev

Update Azure CSPKG with a transformed web.config post-publish

From Dev

Using transformed Web.config with IIS Express during debug

From Dev

Web.config is being renamed by msbuild

From Dev

Web.config is being renamed by msbuild

From Dev

How call Web Essentials task in MSBuild ?

From Dev

Should .cloned() be before or after .filter()

From Dev

Execute custom MSBuild task always after build process

From Dev

Teamcity - Transform web.config and password.config upon build using MSBuild SlowCheetah 2.5.48

From Dev

Can `Either` types be transformed to `Task` types?

From Dev

MSBuild WriteCodeFragment Task

From Dev

MSBuild task silent execution

From Dev

MSBuild Task and passing properties

From Dev

MSBuild WriteCodeFragment Task

From Dev

Web.Config transformation not applied after publish

From Dev

config Spring scheduled task to start after user authentication

From Dev

fun2ms should be transformed?

From Dev

"Please correct before proceeding." - Web.config error

From Dev

Are there any events to run something before and after a task is completed in JakeJS?

From Dev

count number of lines provided to Python script before and after task

From Dev

Can I package a website with a publish profile using msbuild and skip the web.config transforms?

From Dev

After a deadlock, why should application code wait before retrying?

From Dev

Should I apply string manipulation after or before joining tables in Oracle

From Dev

Should I add fixing styles before or after the original style

From Dev

Should you use htmlspecialchars() before isset() and empty(), or after?

Related Related

  1. 1

    Perform a web.config transform before publishing with MSBuild

  2. 2

    Perform a web.config transform before publishing with MSBuild

  3. 3

    Web.config is not transformed when debugging code

  4. 4

    TFS 2012 not copying transformed Web.Config to _PublishedWebsite

  5. 5

    How to get transformed value of key from Web.config

  6. 6

    Update Azure CSPKG with a transformed web.config post-publish

  7. 7

    Using transformed Web.config with IIS Express during debug

  8. 8

    Web.config is being renamed by msbuild

  9. 9

    Web.config is being renamed by msbuild

  10. 10

    How call Web Essentials task in MSBuild ?

  11. 11

    Should .cloned() be before or after .filter()

  12. 12

    Execute custom MSBuild task always after build process

  13. 13

    Teamcity - Transform web.config and password.config upon build using MSBuild SlowCheetah 2.5.48

  14. 14

    Can `Either` types be transformed to `Task` types?

  15. 15

    MSBuild WriteCodeFragment Task

  16. 16

    MSBuild task silent execution

  17. 17

    MSBuild Task and passing properties

  18. 18

    MSBuild WriteCodeFragment Task

  19. 19

    Web.Config transformation not applied after publish

  20. 20

    config Spring scheduled task to start after user authentication

  21. 21

    fun2ms should be transformed?

  22. 22

    "Please correct before proceeding." - Web.config error

  23. 23

    Are there any events to run something before and after a task is completed in JakeJS?

  24. 24

    count number of lines provided to Python script before and after task

  25. 25

    Can I package a website with a publish profile using msbuild and skip the web.config transforms?

  26. 26

    After a deadlock, why should application code wait before retrying?

  27. 27

    Should I apply string manipulation after or before joining tables in Oracle

  28. 28

    Should I add fixing styles before or after the original style

  29. 29

    Should you use htmlspecialchars() before isset() and empty(), or after?

HotTag

Archive