clickonce

MSBuild is not generating publish web page (ClickOnce)

懵懂的女人 提交于 2019-12-01 03:16:20
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 I found a good solution here . You can use a template for publish.htm with {VERSION} placeholder inside. MSBuild Community Tasks are required for the FileUpdate task. BUILD_VERSION -

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

瘦欲@ 提交于 2019-12-01 03:12:44
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? Nir 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 between those "Application Reference" files and shortcuts (.lnk) is that the application reference points to

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

蓝咒 提交于 2019-12-01 03:07:36
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 'DotNetFX40\dotNetFx40_Full_x86_x64.exe' for item 'Microsoft .NET Framework 4 (x86 and x64)' to your

Partial application updates in ClickOnce using Visual Studio build

泄露秘密 提交于 2019-12-01 02:46:45
问题 I am using VS2008 to publish my application files using ClickOnce. I read somewhere that ClickOnce intelligently does only partial updates; meaning it only downloads files from the network share if the file has changed in subsequent updates. However, this wasn't working for me. So I did some research and stumbled upon this MSDN article - http://msdn.microsoft.com/en-us/library/ms404267.aspx. It says that if we build using VS, it doesn't perform the partial updates. Can anyone tell me why this

ClickOnce - Publishing folder vs. Installation folder

感情迁移 提交于 2019-12-01 02:43:17
Could someone tell me the difference between the publishing folder location and the installation folder URL? Is there any reason why these two wouldn't be the same? RobinDotNet You enjoyed my answer in the MSDN Forums so much, I'm posting the link to the answer here as well. ;-) If you are publishing and installing from the same URL, you can just fill in the publishing file location and be done. The reason there are two is so if you want to publish to one place, but have an installation URL that's different, you can do that. For example, you might want to publish to your server using ftp, in

VS2012 .NET 4.0 Clickonce VSTO CryptographicException: SignatureDescription could not be created for the signature algorithm supplied

半世苍凉 提交于 2019-12-01 02:22:27
问题 I have a VS2010 .NET 4.0 VSTO Outlook Addin project that I wish to migrate to VS2012 (but keep it in .NET 4.0). It compiles fine, and runs from inside the IDE just fine, but when I attempt to run the published ClickOnce installer, I get the following exception: System.Deployment.Application.InvalidDeploymentException: Exception reading manifest from file://MyPath/MyAddIn.vsto: the manifest may not be valid or the file could not be opened. ---> System.Deployment.Application

Using EventLog in ClickOnce application

心不动则不痛 提交于 2019-12-01 02:22:18
问题 I've got a library that I use across multiple ClickOnce applications. In the event of an error in this library I would like to write the error to the windows EventLog . I found a KB article on how but it seems that this requires administrator permissions to search the for the source. Specifically it chokes when trying to search the Security event log. Is there anyway to work around this and write to the event log in a ClickOnce application? I saw one person trying to write to a known source,

How to include custom data files in ClickOnce deployment?

青春壹個敷衍的年華 提交于 2019-12-01 02:13:26
问题 Is it possible to include custom data files in ClickOnce deployment? I couldn't find any option for this (Visual Studio 2005 and 2010). The Application Files dialog from the publish tab just doesn't show custom files. 回答1: It actually possible, at least as of Visual Studio 2012 (most likely Visual Studio 2010 as well). The key is to set the build action on the file to "Content". More information is in Custom Folders in ClickOnce . 回答2: It seems that it is impossible. From ClickOnce Deployment

VSTS Online - Build Solution With ClickOnce Signing PFX Password

假如想象 提交于 2019-12-01 01:33:15
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 need to include to ensure the PFX file is seen and the password is set? Using this code to import

Deploying COM components with ClickOnce application

强颜欢笑 提交于 2019-12-01 00:38:11
We're developing a C# WPF (.Net 4.0) application that requires screen "recording". We've evaluated ByteScout's Screen Capture SDK (free trial available), and it does exactly what we need to it. However, the problem is that our application is designed to be deployed by ClickOnce, to our clients' machines (not on our network), and who will likely be logged in as limited, non-administrative users. The SDK has a redistributable component, but this requires to be installed separately - no good for ClickOnce. ByteScout seemingly address this need in their documentation, under the section