i have created an exe which works only in those PC's where visual studio is installed.. not working where Visual studio is not installed ?
what is minimum requirement for an exe where visual studio is not installed ?
When you create a visual studio project, you target a specific framework version. You can check that by Solution Explorer => Right Click Project => Application > Target Framework.
This .NET framework needs to be installed on the PC for the application to work.
To run the generated EXE, you need the CLR to be installed which is shipped as part of the .NET Framework.
Related
This is when creating a new C# WinForms project. I have tried uninstalling, reinstalling, and seemingly everything I could find online.
Other frameworks are installed and are selected appropriately in the Visual Studio installer:
Installed targeting packs
Selected SDK's in Visual Studio Installer
Selected Frameworks in the Desktop Development section of Visual Studio Installer
I think this is because you've created a 'SDK' type project. You need to use the Windows Forms App (.NET Framework) project to target the older frameworks.
Yesterday I installed Visual Studio 2012 Express for Web on Windows 7 Home Premium. When I launched it and trying to set up new project, I wasn't able to do it, because no .Net framework was seen in New Project window. I got message "No framework is selected, you must select one before creating a project". Then I reinstalled twice Visual, but it didn't solve my problem. I also tried to install .Net 4.0 manually, but I got messsage that newer version is already installed, which means that .NET 4.5 framework was installed on my computer during Visual's installation. Is there any possible solution to my issue, beside reinstalling Windows? I would be very grateful for help.
We're building a .NET 4.5 application, using VS 2012. On developer machines, where VS 2012 is installed, there are no issues. On machines where this is missing, they get an error while building the project which boils down to:
The reference assemblies for framework ".NETFramework,Version=v4.5" were not found.
I know that if I installed VS 2012 on these other machines, everything will work. I don't want to have to do that. I've tried installing a variety of things, all without any success:
.NET 4.5 SDK
.NET 4.5.1 SDK
MS Build Tools
Visual Studio 2012 SDK
Windows Software Development Kit for Windows 8.1
After picking one machine and installing VS 2012 on it, I did before and after Process Monitor snapshots during a build. The successful machine has this folder C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5, the unsuccessful machine does not.
I can copy the folder from my dev machine onto our build machines and other machines, but is there any thing I can install (short of Visual Studio), that sets this up correctly?
Visual studio 2012 does not packed with .net framework 4.5.
you can download .net framework 4.5 and install it on your machine.
How can I include .NET Framework 4 as a prerequisite in Prerequisite Dialog Box in VS 2008.
My purpose is in Launch Condition of setup and deployment project, .NET Framework 4 should be present and get installed with installer. (I would not prefer that installer downloads it from internet, rather from same place as my application start up).
Thanks in advance.
Visual Studio 2008 doesn't support .NET 4.
If you want to develop using .NET 4 you will need to upgrade to Visual Studio 2010.
We are using Visual Studio 2008 and .Net 3.5. we can build our C# projects in build machine by using MSBuild from SDK because we don't have visual studio installed on the build machine.
Now we are trying to build the Setup project with similar settings. It looks like the MSBuild doesn't like .vDProj. any idea how can we do that?
thanks,
EDIT:
the build machine only has SDK installed, no Visual Studio installed, no other thirdparty build tool installed.
Install Visual Studio on the Build machine.