We accidentally deleted the .csproj file of our android project in xamarin.forms. Is there any way to generate it again?
Related
I have a CMake project which I've opened in Visual Studio 2022 Professional as a directory, using a CMakePresets.txt to make some build presets.
I have a dotnet new wpf project added to this CMake project with include_external_msproject(....csproj TYPE "FAE04EC0-301F-11D3-BF4B-00C04F79EFBC").
I want to be able to design the .xaml files using the WYSIWYG XAML Designer tool in Visual Studio, but don't have that option in this directory view (which is mandated for the CMakePresets integration).
Is this possible?
Workaround for now is to configure CMake, and then open the .sln with Visual Studio. I can then find the project in the list and use the designer. It's just clunky to have to re-open the same project a different way.
I've migrated a visual studio 2010 project to visual studio 2015. I build the project in VS2015 and everything builds fine but I don't see any .vs folder in the solution which normally contains the following file:
$(solutionDir)\.vs\config\applicationhost.config
How do I generate this folder and the applicationhost.config file?
I've encountered something strange with visual studio 2015 and 2017.
In visual studio 2012 you can create a solution with the structure that is illustrated in the following picture.
and you can add references to both library projects (F1/Common) and (F2/Common) in say Wapp project. nothing special. but in visual studio 2015 and 2017 you will receive this error dialog if you try to do that.
is this a bug in visual studio (2015 - 2017) or there is a configuration for that in visual studio options and settings?
appreciation for your response
One possible workaround is to rename the project in the Solution.
Add the second project under the name "Common2" and then rename the project in the solution explorer back to "Common".
You can do it by adding manually the ProjectReference block section and specifing a different name
<ProjectReference Include="..\F1\Common.csproj">
<Project>{81379587-a98b-4901-a3ad-266739ecfdb1}</Project>
<Name>Common1</Name>
</ProjectReference>
<ProjectReference Include="..\F2\Common.csproj">
<Project>{b9a1d4dc-465c-4798-8072-6e66ad6719d7}</Project>
<Name>Common2</Name>
</ProjectReference>
I opened up an old VC# project in the Visual Studio 2017 RC, however when I right click on a folder and go to add an item I dont see .cs files and hence can not add .cs files. How do I fix this?
Is there a quick way to remove only files that are missing in a Visual Studio project? So files that are no longer accessible that were either deleted or moved outside of Visual Studio.
It sounds like you've physically deleted a file that an MSVS project still "remembers".
You can probably just select and delete the project items in question in the MSVS IDE.
Personally, I'd just edit the project file (e.g. "myprog.csproj") in Notepad.