I have Viusal Studio 2008 on my PC at work and Visual Studio Express 2010 installed on my PC at home.
I have downloaded some source code from the Internet (DotNetNuke) and I am trying to step through it on my PC at home. The problem is that the DotNetNuke source code uses Solution folders and the express editions do not support them. When I open the solution I am faced with errors for every project that is part of a solution.
Is there a way of deleting the solution folders by editing a configuration file, without deleting the projects that are part of the solution folder?
Yes there is but you have to be careful. Open the .SLN file in something like notepad++/notepad. And just remove the the references to the solution folder. Then move the .SLN file to the folder with the code.
Related
I'm using Visual Studio 2019 to develop with C#.
Sometimes Visual Studio creates a folder with a gibberish name when I build a solution, like
C:\FNTJ1nkhh1X4r0gk3geH5yIYY8=
This folder only contains the subfolder sqlite3\v1 which in turn contains the following files
db.lock
storage.ide
storage.ide-shm
storage.ide-wal
If such a folder is created, it is created for one certain solution, other solutions don't show that behaviour. Deleting the folder or recreating the solution doesn't help.
To rule them out I already disabled all extensions in Visual Studio but the problem remains.
I've also compared the affected solution file with an unaffected one but didn't find something suspicious.
Has anyone else experienced this and what could be the reason?
After #HansPassant's comment I dug a bit furhter and found that the folder should be located under
%LOCALAPPDATA%\Microsoft\VisualStudio\Roslyn\Cache\RemoteWorkspace
Searching for this location led me to this forum post which confirms this to be a bug in Visual Studio which should be fixed in Visual Studio 2019 version 16.8 preview 3.
I have VS community edition and I can't find my installed files. I go to the properties window of my start up project and click down to Publish. My publishing folder location is j:\projectinstall. My installation folder is \c\program files (x86)\TestProject\ (For some reason, VS doesn't allow destinations such as c:\program files (x86)) I run publish then run the install on another workstation. Everything works fine -- I get a shortcut on the desktop and I double click it and the file runs. The problem is that it's like the files don't exist. I can't find file location, there is no target. I do a search on my hard drive and the files are just not there. Any help would be greatly appreciated. I tried it with VS 2015 and 2017.
I found the file under c:\users..\appdata\localapps... but I don't want it published into some buried folder. Please help.
The problem is that the VS Community Edition doesn't come with the proper tools to make an installer. I found a free installer program online: Inno Setup
How do I open I a Visual Studio Code folder in Visual Studio 2015?
If I open it as a "Web Site", it tries to treat the node_modules directory as part of the project's normal JavaScript files and hits an error when the path exceed the maximum path length.
But I can't open it as any other project type unless I first create a project of that type and then move all the VS Code files into that folder.
Should I be trying to open it as a web site?
Or should I create a new project and then copy the files + folders into it?
Is there any advantage to having it as a project?
If I do create a project, it makes it difficult to work together with someone who is just using VS Code?
And if I use a project, which project type should I select?
Finally folder view has arrived in VS 2017 :)
You can find more details in here.
Currently there is no way to open a folder directly with Visual Studio.
Why? Because Visual Studio and Visual Studio Code only shared their name, not the idea behind it. To extend Jenny O'Reilly answer:
Visual Studio Code is a folder oriented editor
This means VSC has the same Point-of-View to your Project as the File Explorer.
Visual Studio (not Code) is a solution oriented integrated development environment (short IDE)
Instead every Project in Visual Studio needs a *.sln Solution-File as Root Component. From this point Visual Studio looks at your Project. An example would, if you copy File in your Project Folder, they wouldn't be recognized from Visual Studio. You have to add them first to your sln File, to see them. It also allows the developer to combine multiple projects (*.csproj,..) into one single Solution to build.
This means the idea behind these two editors is completely different.
Visual Studio (not code) Project-types for Web
There are Node.js Tools for Visual Studio
This will provide Node.js built-in project templates
Visual Studio 2015 comes with TypeScript templates
Workaround 1
A workaround would be a Blank Solution in which you set up your Visual Studio Code Project.
Workaround 2
Another trick would be the answer to this question. You can open your Project Folder as a Website Project.
File -> Open Website -> File System and choose the folder
Update
As you mentioned, there will be errors because Visual Studio tries to build the solutions. For the next few readers of this response, the work around for this (as John Pankowicz writes in the comment) is:
Right-click Web Site in Solution Explorer -> Property Pages -> Build -> Uncheck "Build Web Site as part of solution"
Update 2
(Thanks to JC1001 for this update)
The next version of Visual Studio (Visual Studio "15") will support opening a folder. This is mentioned in the Visual Studio Blog.
Also like in Visual Studio Code, there will be a prompt command for opening Folders. Right now you can use this in the preview version:
devenv /command “file.openfolder FOLDER_PATH”
In the future you will be able to use:
devenv FOLDER_PATH
Opinion
Personally I wouldn't recommend Visual Studio (not code) for HTML/Website projects without server-side-development, because I don't see any features. Even the intellisense suggests to me sometimes bad HTML Code (it's not the IDE's fault).
After all web projects are still text files. You can easily control group projects like this with Version Control. Visual Studio Code even provides an integrated Git support.
Visual Studio Code does not create "project files" that you can open in Visual Studio 2015. Basically, when you open up a Node website in Visual Studio, you need to re-create the folder structure in VS2015 and create a "project file".
I haven't seen any better ways of doing this, but will be happy when we can open a folder just as easilly as we can with VSCode
I'm sure it's not the best way but..
Open an existing .sln with notepad, change the names, save as [name of your project].sln.
Open with Visual Studio.
i have a C# project that i work on using visual studion 2013, the project was created with visual studio 2010, and the entire project is located on a local server and i am using Team Explorer to access it.
the problem is that if i make changes to the project and check-in the Solution (.sln) to the server, and my co workers, that use visual studio 2010, try to open the solution they get an error that the solution was created with a newer version of visual studio.
is there any way to force visual studio 2013 to not change the version number in the solution file? so even though i make changes to the solution the version will not change?
thanks for the help guys, i just ended up creating a copy of the solution file so i'll have 2 .sln files, one for each version.
not the best solution i hoped for but it'll have to do.
thanks.
I have developed a website using Visual studio 2010. Now one of my friend needs that website/project to copy in his system for further development. But whenever i copy from default VS project folder, it is not running in other system( Installed same version of Visual studio). I have done same with VS 2008 and it was working fine.
Follow the below steps :
image 1:
Copy the entire project folder (must Copy the entire project )
Open Visual Studio in Admin Mode
Open the solution file (you can see in the image 1 -project file)
Re-Build the Solution
How to copy from root folder of project :
Just right click the project and find options.
Note : Visual Studio 10 - Framework = 4.5 ,previous versions will not have the same framework so tools and references should be taken care of.They will not load if framework is different.
Probably the full path to the solution folder should be the same on both computers.
It is always recommended to use tools like Github.
These help to maintain a version of the files and all the organizations use some kind of version-ing system
https://www.unleashed-technologies.com/blog/2014/08/01/what-github-and-how-can-it-benefit-your-development-team
So following this practice will help you later when you will start developing professionally
and the tool is free :)