VisualStudio 2010 MyProjectName.application file - visual-studio-2010

When i build my project VisualStudio creates allso a file names MyProjectName.application. What is this file used for? How can i disable the creation of this file in VisualStudio?
Using VisualStudio 2010.

In older versions of visual studio (<2010) you would deploy your application using Setup Wizard but ClickOnce is newer and preferred way of deployment. For ClickOnce deployment model .application files are default deployment manifest for your application i.e they have all the information regarding the choices you make when you deploy your application using ClickOnce. You can find more information here and here
To disable ClickOnce, open your project's properties and do following:
Under Signing tab, uncheck "Sign the ClickOnce manifests".
Under Security tab, uncheck "Enable ClickOnce security settings".
after that delete .application file and it should not reappear.

.application files are default deployment manifest for ClickOnce applications.

Related

How to enable publishing of ClickOnce applications?

I have SKD project Net461. VS 2019. And I dont have options to publish ClickOnce like it look like in: https://learn.microsoft.com/en-us/visualstudio/deployment/quickstart-deploy-using-clickonce-folder?view=vs-2019
I was looking for a component in VS installer and I find only one: "Publishing with the ClickOnce application".
I have only this:
And I don't have a publish tab in Project Properties.
Not through the IDE, but I was able to put ClickOnce in a WPF net48 project with new SDK style to run in an easy way when using msbuild /t:publish.
More info at https://stackoverflow.com/a/69583858/4386359

Entitlements.plist file missing when creating project in Visual studio Xamarin

When creating a project in Xamarin Studio on our Build mac there is a entitlements.plist file in the root of the project.
Apparently this file is needed when a customer wants to resign the app we created for them with their own provisioning profile. if im not wrong the file is obsolete in a appstore deploy, however the client wants to test it before releasing it with their adhoc profile.
When we create a project in Visual Studio 2010 it seems to be missing. might this be a bug in the Visual studio plugin?
You will only get this file if you add it to the iOS project by enabling entitlements.
Go to the project's properties in the solution explorer and in there to "iOS Application".
There's a checkbox for the entitlements. Tick it and the plist file will be added to your project.

Web Package gets wrong IIS Website name

I'm trying to utilise TFS Team Build to deploy web applications from a solution as part of the build process, however I'm having a problem with the IIS website name when using package .zip and cmd files.
In the web application project settings "Package/Publish Web" tab I can set the IIS website name (eg "mobile") and when the project is built using the MSBuild action from the workflow the resulting .zip and .xml files are created correctly. However, upon opening the SetParamters.xml file, the IIS Web Application Name parameter has an old value, something like "Default website/mobile_deploy".
If I build a package directly from within Visual Studio 2010 the SetParameters.xml has the IIS Web Application Name I set in the project file settings.
The build template is set to clear the workspace on each build and I've confirmed this by watching the binaries folder being cleared on the build agent during the build so I'm certain its not the value hasn't been overwritten.
Any suggestions to get the project's IIS Web Application Name pulled through properly?
Maybe, when you build your project through MSBuild you don't set the same Configuration in which you have changed the IIS Web Site/application name through Package/Publish Web settings on Visual Studio 2010.
The deploy path can be different for each Project Configuration. Perhaps you set the Debug value while TFS is using Release?

Deploying .net addin application

I have developed my first .net addin.
Now comes the part to deploy it and im lost.
In the .NET Setup and Deployment project, i have configured the Application folder to
contain all the dlls and the add-in file itself.
Now comes the requirement to automate the Add-in deployment in the VS2008 editor.
Is there a way, where on successful installation,the addin is automatically added in the Addin manager (i.e after folder is configured in the Add-in / Macros security automatically ? )
Pop up the Usage document file which is included as a file in the Application folder on successfull installation.

Web Deployment Projects, Web Application Projects and Team Build 2008

I've switched from a Website Project to a WAP (Web Application project).
The WDP (Web Deployment Project) is used to set and potentially in the future make other web.config changes.
However I notice that the team build is building everything twice, once on behalf of the solution file and then again because of the WDP. Any idea how I can stop this from happening?
Or is there a way to replace out the web deployment project altogether?
Yes and yes.
You can stop TFS Build from building everything twice by following these steps:
Open the configuration manager (open your solution and select Configuration Manager from the top-level Build menu).
Expand the drop down list for Active solution configuration and select New.
Enter a name for your new solution configuration and select an existing configuration to copy settings from and click OK.
In the Configuration Manager, uncheck the checkboxes in the Build column for all of the projects except the deployment project and click Close.
Edit your TFSBuild.proj file's ConfigurationToBuild ItemGroup by adding your new configuration:
Foo
Any CPU
Where Foo is the name of the new configuration you just defined.
For Visual Studio 2010, the ASP.NET team has partnered with the IIS team to deliver an integrated web application packaging and deployment solution built on the [Web Deployment Tool][1]. It more or less replaces web deployment projects and you can use it with VS/TFS 2008 via its [command line interface][2]. I have a blog post covering the basic scenario here:
Building a Simple Web Site with VSTS/TFS 2008.

Resources