So with the release of Windows 10, I've now installed it along with Visual Studio Community 2015 with the plan of developing new Windows Universal Apps...
However, when I try to create a blank Universal App, this error occurs while creating the project:
https://i.gyazo.com/4199572c66648138c17f2fc2921c6fcd.png
(Sorry, can't post images).
Followed by these errors in the error output:
https://i.gyazo.com/3685ae972899ee7dbf9fafdd697d6f7f.png
I haven't done anything to the code. This is from a fresh install of Community 2015 and a blank project, based on the Universal App Templates for C#
I've tried reinstalling Visual Studio and repairing, but no luck.
You have to save your project and then install UniversalWindowsPlatform with nugget package or type :
Install-Package Microsoft.NETCore.UniversalWindowsPlatform
In the Package Manager Console
Then, you can compile and launch your program.
For me, I was trying to add a new project to an existing solution. I got the same error and also tried repairing VS, checking and unchecking "Save new projects...", as well as trying to install the dependency manually. What got it to work for me was adding
"dependencies": {
"Microsoft.NETCore.UniversalWindowsPlatform": "5.0.0"
}
to the newly-created project.json file.
Related
I have Visual Studio 2013 Ultimate. Today when I opened it, it didn't load any of my solution's projects. Error message:
Unsupported
This version of Visual Studio is unable to open the following projects. The project types may not be installed or this version of Visual Studio may not support them.
For more information on enabling these project types or otherwise migrating your assets, please see the details in the "Migration Report" displayed after clicking OK.
- ETL_<Project name>, "<Project path></Project>.csproj"
Non-functional changes required
Visual Studio will automatically make non-functional changes to the following projects in order to enable them to open in Visual Studio 2013, Visual Studio 2012, and Visual Studio 2010 SP1. Project behavior will not be impacted.
- <Project name></Project>, "<Project path></Project>.sln"
These projects are of types Class Library and Console Application. If I try to create a new project, these types are listed, but when I create it I get message <Project path> cannot be opened because its project type (.csproj is not supported by this version of the application. To open it, please use a version that supports this type of project..
So, Visual Studio is telling me it doesn't support a project it just created?! GJ M$!!
Unfortunately I was unable to solve this. I ended up uninstalling VS Ultimate. Now I use VS Express for Desktop, and it works with my old projects.
My assumption is that something on Windows broke some part of VS. I should have tried to uninstall and reinstall it but didn't have the opportunity.
I have the same thing in a Hyper-V VM. After repair did not work, I deinstalled and reinstalled VS 2017. Same thing.
In the host I can still open the same project with VS, so it is not the project, but the VS install that has a problem.
It puts this in the migration log:
src\DTOWEB\project.json: Failed to migrate XProj project DTOWEB. Could not find project.json at C:\DTOWeb\DTOWEB7\src\DTOWEB\project.json.
I have a second VM that is x86 iso x64, and it can open the project without problems. So again, my conclusion is there is nothing wrong with the project.
I cannot add a solution reference to a portable class library to my Windows Phone 8.0 apps in Visual Studio 2012. When I try to add it by browsing to the .DLL, then it works. I receive this error when I try:
I am able to add a reference to the portable class library in my web service project, so the library itself appears to be OK.
I have tried:
Restarting Visual Studio.
Restarting Windows
Creating a new Windows Phone project
Creating a new portable class library
Repairing the Windows Phone 8 SDK
Repairing Visual Studio 2012
Regardless of what combination of those things I have tried, attempting to add a solution reference to a portable class library in a Windows Phone project gives me that error.
Well, it turns out that this error message was actually completely useless in what the issue actually was.
The issue was caused by a version mismatch between the PCL and Windows Phone project. I finally realized that VS 2012 only lets you target Windows Phone 8.0
for phone apps, and not 8.1, and I was selecting Windows Phone 8.1 as one of the target frameworks in my PCL. In order to allow me to add a solution reference to the PCL, I had to add "Windows Phone Silverlight 8.0" as one of the target frameworks. Now it works fine.
I have no idea why that error message is the one that I was receiving, but hopefully this can help someone else out if they run into it.
Problem in my case
I am not able to install Microsoft.EntityFrameworkCore.Tools package.
Every time I run the command inside Package Console it shows an error like this
Error
User canceled out of save dialog (Exception from HRESULT: 0x8004000C)
Solution
Restart Visual studio 2019 in admin mode.
Please make sure your project file is not locked.
You can check it by trying to edit the project file (.csproj file). If this file is locked, you cannot add the dependencies.
Tell the person who locked the file to check in or undo the project file and then try to add the dependency
Make sure you have saved any files that you have been working on before attempting this operation. I went to restart Visual Studio and it informed me that I had some pending saves. I saved, restarted and then was able to add the project reference.
Close the Visual Studio and open in run as Administrator .Then try to install the packages.I hope this will work.
I have Visual Studio 2015 RC. When I open a console app or a Windows Phone 8 Silverlight project, everything works fine, I can use Nuget without problems.
When I open a Universal App project (Windows 8.1 + Windows Phone 8.1), Nuget breaks. When I open the Nuget console, I see
When I try to install a Nuget package using the Nuget GUI, I get the same error.
One more strange thing. When I open VS2015 RC without any projects and open the Nuget console, I do not get the error. Then when I open my Universal App project, the error appears.
I am pretty sure it is connected to the Universal App project.
I testes the Universal App project in VS2013 and everything works fine there, no problems with Nuget.
I tried all the steps in installing nuget package "same key has already been added." but it did not help. I guess it is because another folder may be corrupted in my case.
Happens to me on two separate machines, both run Windows 8.1 Pro, one has only VS2015 RC and on has both VS2013 Pro and VS2015 Pro.
I have had the same problem with VS2013 from time to time. While I don't have the exact steps to resolve here, the following summarizes what worked (it may be over kill).
use the package manager to remove all packages
remove the library binding section in the app config
re-add the packages via the package manager
It is a windows machine, you may need to restart visual studio between each step.
I'm running Visual Studio Ultimate 2013 on Windows 8.1. I've started a new C# project with the intent of using SQLite in it. However, I'm running into problems. In the Solution Explorer window I right clicked on my project name which looks like this:
MyProj (Windows 8.1)
and selected "Manage NuGet Packages". At that point I searched for "sqlite" under Online/All and installed this package:
System.Data.SQLite (x86/x64) Version 1.0.96.0
So far so good. I got no errors and the package shows up under my "Installed packages" section. However, when I look in the Solution Explorer under References, I don't see it.
Furthermore, when I type:
using System.Data.SQLite;
into my code, I get an error saying that it can't resolve it. So, what am I doing wrong here?
I had a similar problem using the Azure Mobile Services demo.
When I started working on the offline tutorial , Visual Studio showed the reference for Sqlite for Windows Runtime (Windows 8.1) as missing.
I was able to download the library from the Visual Studio Gallery (https://visualstudiogallery.msdn.microsoft.com/1d04f82f-2fe9-4727-a2f9-a2db127ddc9a) and then I was able to manually add the reference
Ok, here was the link I needed: https://msdn.microsoft.com/en-us/library/windows/apps/dn263243.aspx
Thanks for your help.
I am new to windows app and I am going to build the sqlite-net extension project to .dll file in order to make the models have the relationship attribute of one-to-many, one-to-one, many-to-many.
Link: https://bitbucket.org/twincoders/sqlite-net-extensions
This is the info that it shows when I open the project in visual studio 2013.
Unsupported
This version of Visual Studio is unable to open the
following projects. The project types may not be installed or this
version of Visual Studio may not support them. For more information
on enabling these project types or otherwise migrating your assets,
please see the details in the "Migration Report" displayed after
clicking OK.
- IntegrationTests.Touch-MvvmCross, "C:\Users\**\Downloads\sqlite-net-extensions\sqlite-net-extensions\IntegrationTests.Touch\IntegrationTests.Touch-MvvmCross.csproj"
- IntegrationTests.Touch-PCL, "C:\Users\**\Downloads\sqlite-net-extensions\sqlite-net-extensions\IntegrationTests.Touch\IntegrationTests.Touch-PCL.csproj"
No changes required These projects can be opened in Visual Studio
2013, Visual Studio 2012, and Visual Studio 2010 SP1 without changing
them.
- Tests, "C:\Users\**\Downloads\sqlite-net-extensions\sqlite-net-extensions\Tests\Tests.csproj"
- MvvmCross, "MvvmCross"
- SQLiteNetExtensions-MvvmCross, "C:\Users\**\Downloads\sqlite-net-extensions\sqlite-net-extensions\SQLiteNetExtensions\SQLiteNetExtensions-MvvmCross.csproj"
- SQLiteNetExtensions-PCL, "C:\Users\**\Downloads\sqlite-net-extensions\sqlite-net-extensions\SQLiteNetExtensions\SQLiteNetExtensions-PCL.csproj"
- SQLiteNetExtensions, "C:\Users\**\Downloads\sqlite-net-extensions\sqlite-net-extensions\SQLiteNetExtensions.sln"
I try to build it and it shows some errors. So I right click the project and download the missing packages. When I try to build it again, it shows these errors:
Does anyone successfully bulid it to .dll file or anyone can fix the problems like these?
Many Thanks!
The Integration test projects are MonoTouch projects, that won't open in Visual Studio unless you have Xamarin Business license installed in your PC.
However, the SQLite-Net Extensions project is a standard PCL project and you will be able to compile it from Visual Studio without Xamarin. The problem that you are describing is probably related to not having the SQLite-Net dependency downloaded.
Make sure that you have NuGet Package Manager plugin installed and restore NuGet packages for the project to restore the dependencies and it should work.
You can also download the pre-compiled DLL from the Download page in the project page.
I solved it with changing the build platform. Thx guys!