Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Problems trying to include 3.0 framework with msbuild
 

Problems trying to include 3.0 framework with msbuild

I am trying to build a ClickOnce deployment that includes the 3.0 framework as a dependency. I have dotnetfx3.exe in C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\NETFX30 (my registry entry for sdkInstallRootv2.0 points to C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\).

I have an entry in the msbuild project like this:

Code Snippet

<BootstrapperFile Include="Microsoft.Net.Framework.2.0">
<ProductName>.NET Framework 2.0</ProductName>
</BootstrapperFile>



but I can't figure out what I need to do to get the 3.0 framework included.

Documentation is frustratingly non-existant for using msbuild, which I find surprising considering that trying to use Visual Studio for targeting multiple environments is awkward at best.

Anyone know how I can get msbuild to include 3.0?

Thanks.

Colin


Colin Young  Thursday, August 30, 2007 8:42 PM

It worked for me when I changed it to this:

Code Snippet
<BootstrapperFile Include="{511DAC48-6CBB-43a3-A64D-0182F2A9EBC2}">
<ProductName>.NET Framework 3.0</ProductName>
</BootstrapperFile>

The Guid comes from the ProductCode in C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\NETFX30\product.xml

Hope this helps.

ClaraOscura  Thursday, September 06, 2007 7:51 AM
I had tried that previously, and it broke my build. This time I'm able to build, but it doesn't appear to have solved the problem, but maybe this will get me a bit closer to a solution.

Thanks.

Colin

Colin Young  Thursday, September 06, 2007 4:52 PM

You can use google to search for other answers

Custom Search

More Threads

• ClickOnce publishing to FTP
• deployment ekekek
• ClickOnce on a locked down Terminal Server
• Cannot launch ClickOnce appliation on another network
• Setup and Deployment - detect previously installed application, remove and install or update application?
• Validating serial number while installling
• Detecting InstallAllUsers value
• ClickOnce Fails to Install (DFSVC Problem?)
• How to fix up hard coded path...?
• Multiple download of the same assembly