I just downloaded and installed the Installer Projects extension for VS 2013 and tried to make a new .vdproj project. I created new "Hello World" console application project, then added a new Visual Studio Installer project to the solution, added the output of the console project to it, and tried to build it. Visual Studio opened a file save dialog and prompted me to save my .vdproj file. When I clicked "Save", it complained that it could not find the file that it was prompting me to save.
Why can't I create this simple .vdproj project? VS had no problem with saving the console application project files to this location.
I don't know why, but if you go to the folder and manually create an empty file of the same name as your project, when you try to save, it will respond, "File exists, Overwrite?" and when you select [Yes], it creates the project without a problem.
This seems to be a permissions issue. If I run Visual Studio "as Administrator" it works.
Related
I'm working in Visual Studio 2017. I wanted to open a folder of files, so I clicked File -----> Open ------> Folder and selected the folder containing all my files.
When I view the Solution Explorer, I can see all of my programming files. However, I am unable to build my project and run it. Is there any way to build and run a folder in Visual Studio? I've tried selecting the .cpp file that I wanted to build specifically, but there's still no build/debug option.
In fact, under the Debug menu, the F5 Start option is grayed out. Any solutions?
I think you have to create a Visual Studio project first, and then add those files to the project. What you are doing right now is just using VS as an editor and viewer.
I'm following the Hololens Developer 100 course from Microsoft. All goes well until I get to building. I follow the instructions exactly here and click build. It asks me to select a folder and I create a folder called "App" (per the instructions) and select that folder. When I finally hit build Unity seems like it's working fine but then two things go wrong:
1) The .sln file that's generated is not in the App folder, but in the parent project folder. The App folder is empty
2) When I open the .sln file, it's empty. The tutorial asks me to edit Package.appxmanifes, but I can't because it doesn't seem to have built.
Is there a configuration somewhere that's not correct? Perhaps Unity and VS aren't talking to eachother correctly? More Importantly, how do I fix it?
I had the same problem, for me it was that I didnt have the Windows 10 SDK installed as part of Visual Studio 2015 with Update 3, in the instructions there is a bit that says:
"If you choose a custom install, ensure that Tools (1.4) and Windows 10 SDK (10.0.10586) is enabled under Universal Windows App Development Tools node. All editions of Visual Studio 2015 Update 3 are supported, including Community."
If your hololens build completes successfully a file explorer window will pop open at the project level. If it fails you should find errors in the console tab of Unity.
The SLN file that is at the project level is a solution file that you can open in visual studio to edit unity code and attach to the unity editor to do real time debugging while running your solution in the editor. In fact if you click on a "CS" file in the project tab of Unity this is the solution that opens in visual studio.
The SLN file you are looking for is in the App folder. Once you open the SLN in visual studio set the configuration to Release and x86, and you should be able to target your build at either a "Remote Device" which is the hololens, or the hololens emulator if you have that installed.
I use Advance Installer for Visual Studio to create executable file from my project.
My problem is that: When I create an .exe file, it works on my PC, but when I install on another PC, it does not work (it does not open even).
Can you help me if you have already had a case like such bug please?
It is very likely that you didn't include your EXE app dependencies into your installer project too. In Visual Studio just open your Advanced Installer setup project, select its "Files and Folders" section and use the "Add Project Output" button to add the project references into your installer too.
Hopefully this will help you.
In my windows application, there's a file (option.xml) created by my application on the user's computer. It's created run-time with option selected by the user.
This file is in the bin directory.
When I make a new release, the installation (that I make publishing to a shared directory with visual studio wizard) delete this configuration file, so the user have to save the option again.
How can I publish a new release without delete this file?
I'm using visual studio 2013
I hope that the issue is clear.
thanks
I'm trying to open existing files that were previously opened as a project in Visual Studio, but I moved them and renamed the folder. How can I open these files in Visual Studio as a project?
I'm not sure what you mean by website project. If its the solution files you want then way I found worked for me.
However, If its the project files that add DLL's to your site you will need to create a new project of the same type and copy your code in that project. But the Project file that opens these should still work if it was copied over with the other files.
To add an existing folder to a Solution: Open the the folder as a new website. Ensure that any old .sln files are deleted from the new folder.
When you attempt to close Visual Studios it should prompt you to save your site in a new solution(.sln) file