clickonce

MSBuild is not generating publish web page (ClickOnce)

余生长醉 提交于 2019-11-30 23:27:28
问题 I am facing a problem that when I publish my ClickOnce application through MSBuild (4.0), the publish.htm (or default.htm) isn't created in the app.publish folder. When publishing through Visual Studio, it gets crated... In my .csproj file I have the following properties set, and it still not working... <CreateWebPageOnPublish>true</CreateWebPageOnPublish> <WebPage>default.htm</WebPage> Any ideas? Thanks 回答1: I found a good solution here. You can use a template for publish.htm with {VERSION}

Can not use ClickOnce publish on .NET 4.0 application from Visual Studio 2012

不羁的心 提交于 2019-11-30 23:13:54
问题 I installed Visual Studio 2012 and went to go publish one of our applications, that is targeted at the .NET 4.0 framework. Due to the setup on these machines, we can not target 4.5 at this time. We are also using the 'Download prerequisites from the same location as my application' feature. When going to deploy from Visual Studio 2012, I get the following error: To enable 'Download prerequisites from the same location as my application' in the Prerequisites dialog box, you must download file

ClickOnce .appref-ms more than a link to .application file?

旧巷老猫 提交于 2019-11-30 23:07:53
问题 I have a ClickOnce environment like this: \Fileserver\ClickOnceApps\App1.application C:\Documents and Settings\user\Start Menu\Programs\publisher\app1.appref-ms My understanding is the .apppref-ms file is a glorified link to the app.application file. Does it do anything else? 回答1: If you open the appref-ms file in a text editor you'll see it contains the Url for the application, culture, processor architecture and key used to sign the application, so yes, it's just a link. The difference

Losing VB.NET “My.Settings” with each new ClickOnce deployment release

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-30 22:27:09
I am using the built-in My.Settings functionality in VB.NET to save application settings. This is very convenient but I notice that each time I release a new version, the settings are lost. Why and how can I prevent it? You need to manually update your application settings, I use this easy method: Create a boolean setting called MustUpgrade, User scope, default to True. Then write a method to check if My.Settings requires updating, and call it's Update() method if so. Flag your settings as updated, and save. Call this somewhere in your app load. The Upgrade() method will update your Settings

Error downloading prerequisites after publishing ClickOnce application from VS 2012

≡放荡痞女 提交于 2019-11-30 22:09:25
I published a ClickOnce application from Visual Studio 2012, and selected the .NET 4.0 runtime and Microsoft Report Viewer 2012 as prerequisites. I also selected to download the prerequisites from the vendor's website. When I try to install the application on a client PC, I receive the following error: Setup has detected that the file 'C:\Users\MyUsername\AppData\Local\Temp\VSD537C.tmp\DotNetFX40\dotNetFx40_Full_setup.exe' has changed since it was initially published. The log provides no additional details. If I manually install the .NET runtime, then I receive the same error for the report

Installing a ClickOnce application from two different locations

核能气质少年 提交于 2019-11-30 21:33:38
I have a Windows Forms application developed using C# in .NET framework 3.5, Service pack 1. The application can be published based on the development database as well as the production database. I am using MSBuild community tasks to publish my application. I do not face any problems while publishing the application to different location, namely a development location and a production location. Issue: After installing the development application into my machine, I am unable to install the production application. It gives me an error saying: You cannot start application TEST from this location

VSTS Online - Build Solution With ClickOnce Signing PFX Password

风格不统一 提交于 2019-11-30 21:23:02
问题 I have a WPF Solution I am building in VSTS Online. Below is my basic Build Definition: In Visual Studio 2017 locally I've assigned a Click Once Certification (PFX). Everything builds and compiles fine locally. The Build fails with the following error: Cannot import the following key file: . The key file may be password protected. To correct this, try to import the certificate again or import the certificate manually into the current user's personal certificate store. What setting/step do I

Is it possible to register a .NET assembly for COM interop without adding registry entries?

若如初见. 提交于 2019-11-30 21:18:12
I am deploying a .NET VSTO application via click once. The application's main assembly needs to be registered for COM interop as part of the installation process. I know that this can be done by writing code to execute "REGASM assembly.dll /tlb", but the problem is that the target workstations that will be installing my application don't have administrative rights, so the regasm fails when trying to register the type library. My question is, how can I register my .net assembly for com interoperability when I don't have administrative access? You could use registration-free activation of COM

window.location doesn't work after an AJAX request in Internet Explorer

泄露秘密 提交于 2019-11-30 20:39:37
I am trying to launch a ClickOnce application via a link on a web page. The link has to go to the server to request a transaction GUID before it can launch the application. The code works like this: function clickHandler() { $.post('/gettransactionid.aspx', function(tranId) { console.log("BEFORE"); window.location = "/deploy/Company.Domain.Product.application?" + tranId; console.log("AFTER"); }); return false; } This works perfectly fine in Firefox but in IE it peforms a navigation and doesn't open the clickonce application. The console.log BEFORE and AFTER are shown in the console window in

Using MSBuild to sign ClickOnce or assembly results in error MSB3321

眉间皱痕 提交于 2019-11-30 20:27:04
I've set up my simple project in Visual Studio 2008 to use a ClickOnce installer. I've specified that the ClickOnce manifests should be signed by our comapny's PFX file. When I set this up in Visual Studio it asked for the password for the PFX file, which I gladly supplied. Everything works fine when I build and publish from within Visual Studio. It also works fine building from MSBuild on my machine. However, when I try to build it using MSBuild on our build machine, I get the following error: ERROR MSB3321 in C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(1805,7) :