ClickOnce in new beta C# Express

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I just upgraded C# Express to latest beta. In this version it i possible
to publish the project for the click once upgrade. it seems to work fine,
however if iI try to install it via a web link, the installation link just
opens an xml file. nothing is happening. Something I do wrong or its it a
bug in this version ?
 
Wilfried Mestdagh said:
Hi,

I just upgraded C# Express to latest beta. In this version it i
possible
to publish the project for the click once upgrade. it seems to work fine,
however if iI try to install it via a web link, the installation link just
opens an xml file. nothing is happening. Something I do wrong or its it
a
bug in this version ?

VS Express editions do not support click-once deployment.

http://lab.msdn.microsoft.com/vs2005/productinfo/productline/default.aspx

Willy.
 
Willy is correct but there is a workaround since the sdk includes all the
tools required. You'll just have to do it manually:
1. Use sn.exe to create a Strong Name Key (.snk) file and add it to the
solution

2. Edit the Project File:
<PropertyGroup>
[...]
<GenerateManifests>true</GenerateManifests>
<InstallUrl>http://www.okaq.com/app/app.exe</InstallUrl>
<AssemblyOriginatorKeyFile>app/app.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>

3. Run MSBuild.exe /t:publish app.csproj

4. Publish to web server.

See Sampy's Blog for more info:
http://blogs.msdn.com/misampso/archive/2004/07/26/197577.aspx
 
Back
Top