I'm having some issues adding a new content page. I think it's some kind of issue with Visual Studio 2017 Community. When I add a new content page I can't see the .xaml file. After clicking show all files I see this:
Also, I can't include the .xaml file in the project. When I click include in project nothing happens. I'm using visual studio 2017 community, Windows 10.
What should I do?
I fixed it manually by editing the xml in project file and closing / opening the project. However, after upgrading my version of Visual Studio it seemed to resolve itself going forward.
I'm on 15.5.2 Also, I seem to remember this being related:
https://bugzilla.xamarin.com/show_bug.cgi?id=55591
...and suggestions here being helpful:
https://forums.xamarin.com/discussion/100129/xamarin-forms-vs2017-netstandard-xaml-and-code-behind-are-not-grouped
Related
I'm trying to use WinUI (3) for the first time.
I've followed the instructions at https://learn.microsoft.com/en-us/windows/apps/winui/winui3/#install-winui-3-preview-4 so installed vs 2019 preview (Professional Version 16.9.0 Preview 4.0) and installed the "WinUI 3 Project Templates via the Manage Extensions option.
Created a new solution, added project type "Blank app, Packaged (WinUI in desktop)" (C#) and this is the result:
I can start debugging and the window opens and can click the example button without any issues.
But when I open the xaml I have this issue:
And the intellisense doesn't give options like for example grid.
The imported namespaces in the code behind:
So all the basics of a new WINUI project on a clean vs 2019 preview installation. I've only installed Resharper and imported my settings from my regular vs 2019 installation (which I reset but to no avail).
When I choose for Microsoft.UI.Xaml.Window he changes the xaml to
And gives following errors:
When choosing ABI.Microsoft.UI.Xaml.Window the xaml changes in the same way as before but also gives exceptions on other properties like "The property 'HorizontalAlignment' was not found in type 'StackPanel'".
No idea if this matters but as I've never worked with WPF I don't have experience with xaml (always worked with winforms as frontend). So I also added a WPF project to this solution and this worked without any issue.
I can't find anything regarding this so please help me set my first steps in WINUI.
I've notificed it worked for a few seconds after reopening my solution. So prime suspect was Resharper. Disabled it, and problem is solved. Re-enabled it, updated to 2020.3.2 and it worked.
So lesson here: It's not because you just installed Resharper, that it also downloads the latest version ...
I have a functions app project called Gorge.FunctionApp with the file path D:\Kernelgen\Platform\Gorge\gorge-products-catalog\Gorge.FunctionApp. However, when I try to add a new function, the dialog box just does not show up. When hit Ctrl+Shift+A to add a new file, I get the error as shown in the picture below.
Below is the folder path which is less than 100 characters
I'd appreciate any kind of insight on this issue.
Seems like some installation issue to me as i tried in Visual studio 2019 Preview edition and it worked for me.
I would suggest you to repair your VS 2019 and try it again.
Also if you still see this an issue , feel free to report it to VS team by clicking on following link in visual studio.
Hope it helps.
I have a WinForms application. I see the solution file, but when I try to add new project to it and select the needed type of file, after pressing "OK" nothing happens, any ideas why?
Visual Studio Professional 2017 15.4.0
UPDATE:
As it turned out I couldn't even create any empty project, so I had to reinstall visual studio cause I didn't find any other solution. All works fine now.
I am facing a problem in editing .cs files in my project, I recently installed visual studio 2013 on a fresh operating system Windows 8.1 x64.
It is not letting me edit the Project files i created here,
I have read articles and Stackoverflow threads but every one here is referring to Resharper tools that i have not installed on my machine. so besides resharper tools cache clearing method, please suggest other solutions. Thanks!
EDIT:
Issue was resolved. Since, it was the fresh installation, I forgot to register the product before starting on it, After I had registered the product and it allowed me to edit files!
Close Visual Studio.
Open the folder that contains your .cs file, select the file and open it's properties. Remove any checked "read-only" or similar property.
Reopen Visual Studio and edit your file.
I am getting this error when I try to open the solution file of my project. The solution is 2012 file (checked using notepad).
If I click on Ok, The solution opens up except for one csproject which does not load.
I get a migration report in UpgradeLog.htm file, with the following error for the project which failed to load. Could not figure out much from it.
Error:
The application which this project type is based on was not found.
Please try this link for further information:
http://go.microsoft.com/fwlink/?prd=12395&pver=11&sbp=ProjectTypeDeprecated&plcid=0x409&clcid=0x409&ar=MSDN&sar=ProjectCompatibility&o1=82b43b9b-a64c-4715-b499-d71e9ca2bd60
Does the upgrade report mean that it is a project from previous version of Visual studio? It does not open in Visual Studio 2010 either.
The error doesn't say that Visual Studio doesn't support .csproj files at all, it says it doesn't support a specific project type in that particular project file. This means this either isn't your project as you claim, or you are trying to build it on a different machine from the one used to create the project.
Visual Studio uses various elements in a .csproj file to determine its project type. See How do you tell the Visual Studio project type from an existing Visual Studio project and What is the significance of ProjectTypeGuids tag in the visual studio project file. It does this so it knows how to compile your project, what properties tabs to show, what context menu options should be available and so on.
Certain project types can cause this error. Usually they require some kind of SDK to be installed on the machine used to open or build the project.
You should search the web for the GUID mentioned in the error message you show (the value after o1=). You can also open the project file in a text editor and find the <ProjectTypeGuids> elements, which contains comma-separated project type GUIDs.
Then search the web for those GUIDs to find out which SDK or tool you need to install in order to be able to open or build the project.
If you paste the specific GUID from your error message in your favorite web search engine, you'll find Problem solved: Visual Studio / There is a missing project subtype. Subtype: '{82b43b9b-a64c-4715-b499-d71e9ca2bd60}' is unsupported by this installation., where it is mentioned you'll need to install the Visual Studio 2013 SDK. This means that in this case, your project is a Visual Studio 2013 extension.
This is what documentation is for. You should at least put a ReadMe.txt file in your project directory, explaining what the prerequisites for building a project are, especially when it won't open or build with Visual Studio out of the box.
I had this issue when I used Update 5 for VS 2013.
For me I had to click ok and read the next few steps, that popped up. I was initially clicking cancel.
On mine the project was missing Web Tools, so had to reinstall those and once done it was working.
Hope that helps someone.
This issue also appears when trying to import an ASP.Net project into Visual Studio 2015 Express for Desktop, and can be solved by simply downloading and installing Express 2015 for Web - or by using Visual Studio Community/Standard.
I am currently using VS 2017 v 15.7.4. This error came out of no where without any updates on my part. Usually when I have errors like this I just delete the .vs folder in my solution and that clears the problem. In this case that is what I did and the problem was fixed.
Close VS
Delete .vs folder
Load VS
Note: This was for a Xamarin based solution.
I solved this problem by downloading and installing (Microsoft Visual Studio Installer Projects). Close the project then install. After the installation, open your project then reload .csproj file
I had the same issue with VS 2017.
Eventually i solved it by just enable the SSIS in the following way:
1. In VS 2017 - Click on Extensions and Updates in the Tools menu.
Locate the Microsoft Integration Services Projects.
if you can't find it then you will have to install it first.
Click on the Enable button.
Close VS and start it again and SSIS projects are now available.
enter image description here
This (the error that states "Visual studio doesn't support specific csproj file") also occurs when the .vs folder is removed; however, closing and reopening Visual Studio will resolve the error.