I have a windows service that is installed using a setup project. Things work fine but I would like to be able to set the version of the service as I do with the AssemblyVersion of my assemblies.
The only place where I have been able to see this version number is in the version column in the listing of applications in the add or remove applications dialogue.
In the solution explorer highlight your setup project.
Then select your "Properties" tab. (not right click the project, this is counter intuitive)
Find version number at the bottom, when asked to change the product code, select yes.
That should be it.
Hope that helps.
Paul
Yes, As Paul said
In the solution explorer highlight your setup project.
Press F4 or open "Properties" tab from View option of Menu of VS. (not by right clicking the project).
You can find version number at the bottom and other options like Product name etc.
I tried it and it worked.. :)
Related
In my winforms application, I used WebBrowser class which is using IE browser. I want to update it into WebView class so that I can use Edge browser. That's why I installed packages Microsoft.Toolkit.Forms.UI.Controls.WebView. Then I changed some existing code which is compatible with WebView. But when I ran the project, I found the below errors after installing that package.
The item "C:\Projects\windows-v2\packages\System.Runtime.WindowsRuntime.4.6.0\build\net461....\ref\netstandard2.0\System.Runtime.WindowsRuntime.dll" in item list "ReferencePath" does not define a value for metadata "CopyLocal". In order to use this metadata, either qualify it by specifying %(ReferencePath.CopyLocal), or ensure that all items in this list define a value for this metadata.
I found the solution and I am answering my own question. If anyone will face same problem then it will help.
The problem is not in the code. It is a problem in visual studio upgrading problem. Previously the project was in VS 2015 version but when I upgraded the webView, I used VS 2017 version. This is the reason to show the error "ReferencePath" does not define a value for metadata "CopyLocal".
To solve this problem go to the following directory:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin
and open Microsoft.Common.CurrentVersion.targets file.
Then at Line 3961 change this ...Include="#(ReferencePath)" into ...Include="#(ReferencePath.CopyLocal)"
To use a WebViewCompatible control in a Windows Forms application:
Install package Microsoft.Toolkit.Forms.UI.Controls.WebView
Right click on an empty area in Toolbox → select Choose Items → From the Choose Toolbox Items → choose .NET Framework Component tab → Click on Browse → Browse the package folder and choose Microsoft.Toolkit.Forms.UI.Controls.WebView dll → Click Open → Click OK
Drop an instance of WebViewCompatible control on the form.
In the Load event or in constructor after InitializeComponent add code to navigate to the address you want:
webViewCompatible1.Navigate("https://www.google.com");
I am trying to change the target version to .NET 3.5.
The project I'm using was created by Unity, the game engine. I'm doing this so I can install nuget dependencies
But when I try to open the properties menu, either the screen flashes white and nothing happens, or a window appears which looks significantly different than the one pictured in the instructions. This is the properties menu I'm seeing:
properties
This is what I'm clicking on to get the properties not found dialogue:
where I'm clicking
Thanks!
You aren't changing the project properties, you are looking at one individual class properties page.
You need to right click on the Project, and select properties as demonstrated below.
That will open up this page.
Right Click your project and click properties or in visual studio Project->ProjectName Properties... at the bottom. Then on the Application tag or tab, there will be Target Framework: Change this to .NET Framework 3.5.
I am developing a Win Forms with C# in Visual Studio 2012 RC.
The Problem is my project is not creating
example.XmlSerializers.dll
in
*\bin\Debug directory of my project.
This problem occur when i publish the project using Click Once.
What i have done already to get rid of this problem.
In Project's properties Build Tab. i have set Generate Serialization Assembly = ON
In project's properties Publish Tab. I clicked on Application Files Button and select example.XmlSerializers.dll = Include
I have searched on Google but didn't find the satisfactory answer.
Please Help. I am in trouble. How can i get rid of it. I will be very very thankful.
If you build your application, do the dll's show up in the \bin\debug folder? If do, then build the application, then open the Application Files dialog (in the Publish tab of your main project's properties). At the bottom of the screen, check "Show all files". Those dll's should show up. Set them to "Include" and "Required".
I found this link, which helped me sort out the problem.
Seems that the "Publish Now" button has a bug which doesn't include the [application_name].XMLserializers.dll. If you select the "Publish Wizard" button instead, your missing files should be included...
I'm having problems with one of my projects in VS2010 Pro, it won't allow me to hit the "debug" play button at the top of the screen, it's been disabled, when I open other projects or start new ones it's enabled on the new project / other project, however, it's disabled on the one project, I don't know what I changed (it's been awhile since I opened this as it pissed me off last time I opened it), what can I do to re-enable the "play" button? (debug), this is a Windows Phone 7 project and I was messing with the .csproj code.
Edit:
The menu-items have been disabled "Start Debugging: F5" doesn't work, as well.
Thank you.
Make sure you do not have Multiple Startup Projects enabled per this MSDN Forum Link
Make sure you have a Startup Project selected. Right click on one of your runnable projects and select "Set as StartUp Project".
One of the reasons may be that you set your project to compile as library.
There is an easy way to get out - just start new project, then copy all you code/resource files from old project folder to new one, and add them to the new project in visual studio..
Try this
Go to "Project Properties..." >> Compile >> Advanced Compile Options...
and Change Generate Debug Info: to "Full".
I have created a setup project for a Windows Application developed using Visual Stduio 2008(C#).
In the portion of installation screen where it says, this installer will guide you through the steps required to install ABC on your computer
I want this changed to this installer will guide you through the steps required to install XYZ on your computer
How can I change the word ABC to XYZ?
Follow these steps to change your application's name:
Ensure that your setup project is open in Visual Studio.
Click on the project's root-level icon in the Solution Explorer.
In the Properties Window, change the ProductName property to "XYZ" or whatever you want the installer to display as your application's name.
Rebuild the setup project.
Now, if your right-click on the project icon in the Solution Explorer and click "Install", the setup program will start and you can verify that the application name that it displays is correct.
It's also worth investigating the other deployment properties that are available for setup projects to make sure that these are set appropriately for your application.
To change the name that appears on Welcome Screen, you would need to edit as follow.
Right click on Installer Project name > View > User Interface.
From there, edit the properties of Welcome under Start.