dotnet migrate fails for UWP blank app
See original GitHub issueSteps to reproduce
Create any Blank UWP app project and run dotnet migrate.
Expected behavior
app is migrated
Actual behavior
app is not fully migrated, csproj looks messed up. When building the app I get errors:
Error Cannot infer TargetFrameworkIdentifier and/or TargetFrameworkVersion from TargetFramework='uap10.0'. They must be specified explicitly. App5 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.TargetFrameworkInference.targets 84
Severity Code Description Project File Line Suppression State
Error MSB3644 The reference assemblies for framework ".NETFramework,Version=v10.0" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend. App5 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets 1111
Environment data
dotnet --info
output:
.NET Command Line Tools (1.0.1)
Product Information: Version: 1.0.1 Commit SHA-1 hash: 005db40cd1
Runtime Environment: OS Name: Windows OS Version: 10.0.14393 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\1.0.1
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Cant run migrations in UWP app
I used Code-First approach and I was able to run my first migration (created the Migrations folder with the migration class and the...
Read more >Is it possible to migrate a JavaScript UWP application from ...
So we migrated Asp.net application into VS 2017 and implemented CI/CD. But we could not migrate JavaScript UWP application as we face lot...
Read more >UWP Compilation error with .net native ...
I have a UWP project where build works in debug mode but build fails in release mode where .net native compiler is selected....
Read more >Migrating a UWP-only application codebase to an ...
The basic principle is to create an empty Uno Platform app with the same name as your UWP-only app, and to copy the...
Read more >VS 2017 community - Xamarin - Create a new project from ...
Creating a new project solution from template (Xamarin.Forms as PCL) generates an setup error for UWP. 10/10 tries. Here is the conditions:.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@rohit21agrawal which next version? This is still not supported with dotnet 2.0.0-preview1-005977.
Is there a way to migrate UWP project not manually?
if you open your project.json based UWP project in Visual Studio, and change the TPMinV to 15063 (RS2) or higher, the migration will happen automatically.