New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dotnet Migrate fails to create working project #7252
Comments
@piotrpMSFT Any ideas here? This seems like basic stuff, but tons of errors, even after doing the manual property group.
|
@onovotny restore? |
Restore succeeds:
Build errors out:
|
I'm not so sure this is a migration issue. Even creating a scratch, clean, project, I can't use the Digging in a bit deeper, it looks like the Removing the netstandard1.0 from the target frameworks fixed it. Alternatively, you could remove it from the AssemblyInfo.cs. |
@onovotny thoughts? |
even after removing the
|
@onovotny did you try to |
Yes, no dice. It's failing on the Profile32 ones, the UAP10.0 one and the WP8 one:
|
@srivatsn AFAIK we do not support those profiles atop the .NET Core SDK at this point. |
It works in the preview2 tooling and I would expect it to work by GA from a cross-compiling tooling perspective. |
I see part of the issue... <ItemGroup Condition=" '$(TargetFramework)' == 'portable46-win81+wpa81' ">
<Reference Include="System" />
<Reference Include="System.Runtime" />
<Reference Include="System.Runtime.Extensions" />
<Reference Include="System.Resources.ResourceManager" />
<Reference Include="System.Core" />
<Reference Include="Microsoft.CSharp" />
</ItemGroup> "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj" (default target) (2:6) -> |
All the remaining work here is in the SDK. Closing this issue. |
Steps to reproduce
Use the following xproj/project.json that builds successfully on Windows using the Preview2 tooling:
https://github.com/onovotny/Preview3-migrate-bug/tree/master/backup
Then run
dotnet migrate
. The migrate itself is successful, but the result does not build.Expected behavior
Everything that works in preview 2 should work in preview 3 and beyond.
Actual behavior
Multiple compile failures.
TargetFrameworkIdentifier cannot be inferred. Even following the directions and adding https://github.com/onovotny/Preview3-migrate-bug/blob/master/MegaLib.csproj#L10-L14 manually, did not help.
Lots of other compile errors for essentially a "File->New" project.
Environment data
dotnet --info
output:C:\dev\MegaLib\Preview3-migrate-bug [master ≡]> dotnet --info
.NET Command Line Tools (1.0.0-preview3-004056)
Product Information:
Version: 1.0.0-preview3-004056
Commit SHA-1 hash: ccc4968
Runtime Environment:
OS Name: Windows
OS Version: 10.0.14965
OS Platform: Windows
RID: win10-x64
The text was updated successfully, but these errors were encountered: