Stéphane GRILLON
Stéphane GRILLON

Reputation: 11872

MSBuild import project MSBuildExtensionsPath32 depend to version

I want build a vb.NET projet to local machine and Jenkins. On my local machine the WebApplications is in v14.0 but on my Jenkins is it v15.0

<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v14.0\WebApplications\Microsoft.WebApplication.targets" />

is it possible without script a dir cmd in $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\?

Upvotes: 0

Views: 768

Answers (1)

St&#233;phane GRILLON
St&#233;phane GRILLON

Reputation: 11872

replace v14.0 by v$(VisualStudioVersion)

<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\WebApplications\Microsoft.WebApplication.targets" />

Upvotes: 2

Related Questions