Quantcast
Channel: MSBuild forum
Viewing all articles
Browse latest Browse all 2763

Msbuild publish profile not being passed to second web project for solution with multiple projects

$
0
0

I am trying to deploy via Hudson and there,

I have a solution file which has two web projects. Each web project has a publish profile of the same name.

It seems only the first web project built is taking the publish profile and the second one is not considering the publish profile.

My msbuild command

/p:Configuration=Release /t:Rebuild /p:PublishProfile=Normal /p:DeployOnBuild=true

and my second publish profile has

<PrecompileBeforePublish>True</PrecompileBeforePublish> <EnableUpdateable>True</EnableUpdateable><DebugSymbols>False</DebugSymbols><WDPMergeOption>CreateSeparateAssembly</WDPMergeOption> <UseFixedNames>True</UseFixedNames>

But the aspnet compiler is not getting passed with these options when I look at the logs for the second web site.

From the logs, I can see that first web project has

Validating PublishProfile(Normal) settings ,and the second project doesn't have that.

This is a mixed solution file which has the C# web project and  VB.net Website.

Basically what I want is the two sites taking different publish profiles and currently it seems only the first one is taking that and my second website project is not getting the publish profile.

If I run this using VS2013, the websites are published properly.

Ref:SO question

Viewing all articles
Browse latest Browse all 2763


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>