Skip to content
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

Closed
clairernovotny opened this issue Nov 26, 2016 · 13 comments
Closed

Dotnet Migrate fails to create working project #7252

clairernovotny opened this issue Nov 26, 2016 · 13 comments

Comments

@clairernovotny
Copy link
Member

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.

  1. 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.

  2. 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

@clairernovotny
Copy link
Member Author

clairernovotny commented Nov 26, 2016

@piotrpMSFT Any ideas here? This seems like basic stuff, but tons of errors, even after doing the manual property group.

Severity	Code	Description	Project	File	Line	Suppression State
Error	CS0234	The type or namespace name 'Linq' does not exist in the namespace 'System' (are you missing an assembly reference?)	MegaLib(portable46-win81+wpa81)	C:\dev\MegaLib\Preview3-migrate-bug\Class1.cs	3	Active
Error	CS0246	The type or namespace name 'Guid' could not be found (are you missing a using directive or an assembly reference?)	MegaLib(netstandard1.0), MegaLib(portable46-win81+wpa81), MegaLib(wp8)	C:\dev\MegaLib\Preview3-migrate-bug\Properties\AssemblyInfo.cs	19	Active
Error	CS0246	The type or namespace name 'GuidAttribute' could not be found (are you missing a using directive or an assembly reference?)	MegaLib(netstandard1.0), MegaLib(portable46-win81+wpa81), MegaLib(wp8)	C:\dev\MegaLib\Preview3-migrate-bug\Properties\AssemblyInfo.cs	19	Active
Error	CS0518	Predefined type 'System.Object' is not defined or imported	MegaLib(portable46-win81+wpa81)	C:\dev\MegaLib\Preview3-migrate-bug\Class1.cs	8	Active
Error	CS0518	Predefined type 'System.Void' is not defined or imported	MegaLib(portable46-win81+wpa81)	C:\dev\MegaLib\Preview3-migrate-bug\Class1.cs	10	Active
Error	CS0234	The type or namespace name 'AssemblyDescriptionAttributeAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?)	MegaLib(portable46-win81+wpa81)	C:\dev\MegaLib\Preview3-migrate-bug\obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs	14	Active
Error	CS0234	The type or namespace name 'AssemblyDescriptionAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?)	MegaLib(portable46-win81+wpa81)	C:\dev\MegaLib\Preview3-migrate-bug\obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs	14	Active
Error	CS0518	Predefined type 'System.String' is not defined or imported	MegaLib(portable46-win81+wpa81)	C:\dev\MegaLib\Preview3-migrate-bug\obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs	14	Active
Error	CS0234	The type or namespace name 'AssemblyFileVersionAttributeAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?)	MegaLib(portable46-win81+wpa81)	C:\dev\MegaLib\Preview3-migrate-bug\obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs	15	Active
Error	CS0234	The type or namespace name 'AssemblyFileVersionAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?)	MegaLib(portable46-win81+wpa81)	C:\dev\MegaLib\Preview3-migrate-bug\obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs	15	Active
Error	CS0518	Predefined type 'System.String' is not defined or imported	MegaLib(portable46-win81+wpa81)	C:\dev\MegaLib\Preview3-migrate-bug\obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs	15	Active
Error	CS0234	The type or namespace name 'AssemblyInformationalVersionAttributeAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?)	MegaLib(portable46-win81+wpa81)	C:\dev\MegaLib\Preview3-migrate-bug\obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs	16	Active
Error	CS0234	The type or namespace name 'AssemblyInformationalVersionAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?)	MegaLib(portable46-win81+wpa81)	C:\dev\MegaLib\Preview3-migrate-bug\obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs	16	Active
Error	CS0518	Predefined type 'System.String' is not defined or imported	MegaLib(portable46-win81+wpa81)	C:\dev\MegaLib\Preview3-migrate-bug\obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs	16	Active
Error	CS0234	The type or namespace name 'AssemblyTitleAttributeAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?)	MegaLib(portable46-win81+wpa81)	C:\dev\MegaLib\Preview3-migrate-bug\obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs	17	Active
Error	CS0234	The type or namespace name 'AssemblyTitleAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?)	MegaLib(portable46-win81+wpa81)	C:\dev\MegaLib\Preview3-migrate-bug\obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs	17	Active
Error	CS0518	Predefined type 'System.String' is not defined or imported	MegaLib(portable46-win81+wpa81)	C:\dev\MegaLib\Preview3-migrate-bug\obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs	17	Active
Error	CS0234	The type or namespace name 'AssemblyVersionAttributeAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?)	MegaLib(portable46-win81+wpa81)	C:\dev\MegaLib\Preview3-migrate-bug\obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs	18	Active
Error	CS0234	The type or namespace name 'AssemblyVersionAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?)	MegaLib(portable46-win81+wpa81)	C:\dev\MegaLib\Preview3-migrate-bug\obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs	18	Active
Error	CS0518	Predefined type 'System.String' is not defined or imported	MegaLib(portable46-win81+wpa81)	C:\dev\MegaLib\Preview3-migrate-bug\obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs	18	Active
Error	CS0234	The type or namespace name 'NeutralResourcesLanguageAttributeAttribute' does not exist in the namespace 'System.Resources' (are you missing an assembly reference?)	MegaLib(portable46-win81+wpa81)	C:\dev\MegaLib\Preview3-migrate-bug\obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs	19	Active
Error	CS0234	The type or namespace name 'NeutralResourcesLanguageAttribute' does not exist in the namespace 'System.Resources' (are you missing an assembly reference?)	MegaLib(portable46-win81+wpa81)	C:\dev\MegaLib\Preview3-migrate-bug\obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs	19	Active
Error	CS0518	Predefined type 'System.String' is not defined or imported	MegaLib(portable46-win81+wpa81)	C:\dev\MegaLib\Preview3-migrate-bug\obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs	19	Active
Error	CS0246	The type or namespace name 'AssemblyConfiguration' could not be found (are you missing a using directive or an assembly reference?)	MegaLib(portable46-win81+wpa81)	C:\dev\MegaLib\Preview3-migrate-bug\Properties\AssemblyInfo.cs	8	Active
Error	CS0246	The type or namespace name 'AssemblyConfigurationAttribute' could not be found (are you missing a using directive or an assembly reference?)	MegaLib(portable46-win81+wpa81)	C:\dev\MegaLib\Preview3-migrate-bug\Properties\AssemblyInfo.cs	8	Active
Error	CS0518	Predefined type 'System.String' is not defined or imported	MegaLib(portable46-win81+wpa81)	C:\dev\MegaLib\Preview3-migrate-bug\Properties\AssemblyInfo.cs	8	Active
Error	CS0246	The type or namespace name 'AssemblyCompany' could not be found (are you missing a using directive or an assembly reference?)	MegaLib(portable46-win81+wpa81)	C:\dev\MegaLib\Preview3-migrate-bug\Properties\AssemblyInfo.cs	9	Active
Error	CS0246	The type or namespace name 'AssemblyCompanyAttribute' could not be found (are you missing a using directive or an assembly reference?)	MegaLib(portable46-win81+wpa81)	C:\dev\MegaLib\Preview3-migrate-bug\Properties\AssemblyInfo.cs	9	Active
Error	CS0518	Predefined type 'System.String' is not defined or imported	MegaLib(portable46-win81+wpa81)	C:\dev\MegaLib\Preview3-migrate-bug\Properties\AssemblyInfo.cs	9	Active
Error	CS0246	The type or namespace name 'AssemblyProduct' could not be found (are you missing a using directive or an assembly reference?)	MegaLib(portable46-win81+wpa81)	C:\dev\MegaLib\Preview3-migrate-bug\Properties\AssemblyInfo.cs	10	Active
Error	CS0246	The type or namespace name 'AssemblyProductAttribute' could not be found (are you missing a using directive or an assembly reference?)	MegaLib(portable46-win81+wpa81)	C:\dev\MegaLib\Preview3-migrate-bug\Properties\AssemblyInfo.cs	10	Active
Error	CS0518	Predefined type 'System.String' is not defined or imported	MegaLib(portable46-win81+wpa81)	C:\dev\MegaLib\Preview3-migrate-bug\Properties\AssemblyInfo.cs	10	Active
Error	CS0246	The type or namespace name 'AssemblyTrademark' could not be found (are you missing a using directive or an assembly reference?)	MegaLib(portable46-win81+wpa81)	C:\dev\MegaLib\Preview3-migrate-bug\Properties\AssemblyInfo.cs	11	Active
Error	CS0246	The type or namespace name 'AssemblyTrademarkAttribute' could not be found (are you missing a using directive or an assembly reference?)	MegaLib(portable46-win81+wpa81)	C:\dev\MegaLib\Preview3-migrate-bug\Properties\AssemblyInfo.cs	11	Active
Error	CS0518	Predefined type 'System.String' is not defined or imported	MegaLib(portable46-win81+wpa81)	C:\dev\MegaLib\Preview3-migrate-bug\Properties\AssemblyInfo.cs	11	Active
Error	CS0246	The type or namespace name 'ComVisible' could not be found (are you missing a using directive or an assembly reference?)	MegaLib(portable46-win81+wpa81)	C:\dev\MegaLib\Preview3-migrate-bug\Properties\AssemblyInfo.cs	16	Active
Error	CS0246	The type or namespace name 'ComVisibleAttribute' could not be found (are you missing a using directive or an assembly reference?)	MegaLib(portable46-win81+wpa81)	C:\dev\MegaLib\Preview3-migrate-bug\Properties\AssemblyInfo.cs	16	Active
Error	CS0518	Predefined type 'System.Boolean' is not defined or imported	MegaLib(portable46-win81+wpa81)	C:\dev\MegaLib\Preview3-migrate-bug\Properties\AssemblyInfo.cs	16	Active
Error	CS0518	Predefined type 'System.String' is not defined or imported	MegaLib(portable46-win81+wpa81)	C:\dev\MegaLib\Preview3-migrate-bug\Properties\AssemblyInfo.cs	19	Active
Error	CS0234	The type or namespace name 'TargetFrameworkAttributeAttribute' does not exist in the namespace 'System.Runtime.Versioning' (are you missing an assembly reference?)	MegaLib(portable46-win81+wpa81)	C:\Users\oren\AppData\Local\Temp\.NETPortable,Version=v4.6,Profile=Profile32.AssemblyAttributes.cs	4	Active
Error	CS0234	The type or namespace name 'TargetFrameworkAttribute' does not exist in the namespace 'System.Runtime.Versioning' (are you missing an assembly reference?)	MegaLib(portable46-win81+wpa81)	C:\Users\oren\AppData\Local\Temp\.NETPortable,Version=v4.6,Profile=Profile32.AssemblyAttributes.cs	4	Active
Error	CS0518	Predefined type 'System.String' is not defined or imported	MegaLib(portable46-win81+wpa81)	C:\Users\oren\AppData\Local\Temp\.NETPortable,Version=v4.6,Profile=Profile32.AssemblyAttributes.cs	4	Active
Error	CS0246	The type or namespace name 'FrameworkDisplayName' could not be found (are you missing a using directive or an assembly reference?)	MegaLib(portable46-win81+wpa81)	C:\Users\oren\AppData\Local\Temp\.NETPortable,Version=v4.6,Profile=Profile32.AssemblyAttributes.cs	4	Active
Error	CS0518	Predefined type 'System.String' is not defined or imported	MegaLib(portable46-win81+wpa81)	C:\Users\oren\AppData\Local\Temp\.NETPortable,Version=v4.6,Profile=Profile32.AssemblyAttributes.cs	4	Active
Error	CS1729	'object' does not contain a constructor that takes 0 arguments	MegaLib(portable46-win81+wpa81)	C:\dev\MegaLib\Preview3-migrate-bug\Class1.cs	10	Active

@TheRealPiotrP
Copy link
Contributor

@onovotny restore?

@clairernovotny
Copy link
Member Author

Restore succeeds:

C:\dev\MegaLib\Preview3-migrate-bug [master ≡ +0 ~1 -0 !]> dotnet restore
  Restoring packages for C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj...
  Lock file has not changed. Skipping lock file write. Path: C:\dev\MegaLib\Preview3-migrate-bug\obj\project.assets.json
  Generating MSBuild file C:\dev\MegaLib\Preview3-migrate-bug\obj\MegaLib.csproj.nuget.g.targets.
  Generating MSBuild file C:\dev\MegaLib\Preview3-migrate-bug\obj\MegaLib.csproj.nuget.g.props.
  Restore completed in 979.4595ms for C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj.

  NuGet Config files used:
      C:\Users\oren\AppData\Roaming\NuGet\NuGet.Config
      C:\Program Files (x86)\NuGet\Config\Microsoft.VisualStudio.Offline.config

  Feeds used:
      https://api.nuget.org/v3/index.json
      https://www.nuget.org/api/v2/
      C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\

Build errors out:

C:\dev\MegaLib\Preview3-migrate-bug [master ≡ +0 ~1 -0 !]> dotnet build
Microsoft (R) Build Engine version 15.1.0.0
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 11/28/2016 8:07:05 AM.
     1>Project "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.sln" on node 1 (Build target(s)).
     1>ValidateSolutionConfiguration:
         Building solution configuration "Release|Any CPU".
     1>Project "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.sln" (1) is building "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj" (2) on node 1 (default targets).
     2>Project "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj" (2) is building "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj" (2:2) on node 1 (default targets).
     2>GenerateTargetFrameworkMonikerAttribute:
       Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
       CoreGenerateAssemblyInfo:
       Skipping target "CoreGenerateAssemblyInfo" because all output files are up-to-date with respect to the input files.
       CoreCompile:
       Skipping target "CoreCompile" because all output files are up-to-date with respect to the input files.
       CopyFilesToOutputDirectory:
         MegaLib -> C:\dev\MegaLib\Preview3-migrate-bug\bin\Release\netstandard1.3\MegaLib.dll
       GenerateBuildDependencyFile:
       Skipping target "GenerateBuildDependencyFile" because all output files are up-to-date with respect to the input files.
     2>Done Building Project "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj" (default targets).
     2>Project "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj" (2) is building "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj" (2:3) on node 1 (default targets).
     2>GenerateTargetFrameworkMonikerAttribute:
       Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
       CoreGenerateAssemblyInfo:
       Skipping target "CoreGenerateAssemblyInfo" because all output files are up-to-date with respect to the input files.
       CoreCompile:
         C:\Program Files\dotnet\sdk\1.0.0-preview3-004056\RunCsc.cmd /noconfig /nowarn:1701,1702,1705 /nostdlib+ /errorreport:prompt /warn:4 /define:TRACE;RELEASE;NETSTANDARD1_0 /reference:C:\Users\oren\.nuget\packages\system.collections\4.3.0\ref\netstandard1.0\System.Collections.dll /reference:C:\Users\oren\.nuget\packages\system.diagnostics.debug\4.3.0\ref\netstandard1.0\System.Diagnostics.Debug.dll /reference:C:\Users\oren\.nuget\packages\system.diagnostics.tools\4.3.0\ref\netstandard1.0\System.Diagnostics.Tools.dll /reference:C:\Users\oren\.nuget\packages\system.globalization\4.3.0\ref\netstandard1.0\System.Globalization.dll /reference:C:\Users\oren\.nuget\packages\system.io\4.3.0\ref\netstandard1.0\System.IO.dll /reference:C:\Users\oren\.nuget\packages\system.linq\4.3.0\ref\netstandard1.0\System.Linq.dll /reference:C:\Users\oren\.nuget\packages\system.linq.expressions\4.3.0\ref\netstandard1.0\System.Linq.Expressions.dll /reference:C:\Users\oren\.nuget\packages\system.net.primitives\4.3.0\ref\netstandard1.0\System.Net.Primitives.dll /reference:C:\Users\oren\.nuget\packages\system.objectmodel\4.3.0\ref\netstandard1.0\System.ObjectModel.dll /reference:C:\Users\oren\.nuget\packages\system.reflection\4.3.0\ref\netstandard1.0\System.Reflection.dll /reference:C:\Users\oren\.nuget\packages\system.reflection.extensions\4.3.0\ref\netstandard1.0\System.Reflection.Extensions.dll /reference:C:\Users\oren\.nuget\packages\system.reflection.primitives\4.3.0\ref\netstandard1.0\System.Reflection.Primitives.dll /reference:C:\Users\oren\.nuget\packages\system.resources.resourcemanager\4.3.0\ref\netstandard1.0\System.Resources.ResourceManager.dll /reference:C:\Users\oren\.nuget\packages\system.runtime\4.3.0\ref\netstandard1.0\System.Runtime.dll /reference:C:\Users\oren\.nuget\packages\system.runtime.extensions\4.3.0\ref\netstandard1.0\System.Runtime.Extensions.dll /reference:C:\Users\oren\.nuget\packages\system.text.encoding\4.3.0\ref\netstandard1.0\System.Text.Encoding.dll /reference:C:\Users\oren\.nuget\packages\system.text.encoding.extensions\4.3.0\ref\netstandard1.0\System.Text.Encoding.Extensions.dll /reference:C:\Users\oren\.nuget\packages\system.text.regularexpressions\4.3.0\ref\netstandard1.0\System.Text.RegularExpressions.dll /reference:C:\Users\oren\.nuget\packages\system.threading\4.3.0\ref\netstandard1.0\System.Threading.dll /reference:C:\Users\oren\.nuget\packages\system.threading.tasks\4.3.0\ref\netstandard1.0\System.Threading.Tasks.dll /reference:C:\Users\oren\.nuget\packages\system.xml.readerwriter\4.3.0\ref\netstandard1.0\System.Xml.ReaderWriter.dll /reference:C:\Users\oren\.nuget\packages\system.xml.xdocument\4.3.0\ref\netstandard1.0\System.Xml.XDocument.dll /debug:portable /filealign:512 /nologo /optimize+ /out:obj\Release\netstandard1.0\MegaLib.dll /target:library /utf8output /deterministic+ Class1.cs Properties\AssemblyInfo.cs "C:\Users\oren\AppData\Local\Temp\.NETStandard,Version=v1.0.AssemblyAttributes.cs" obj\Release\netstandard1.0\MegaLib.AssemblyInfo.cs
     2>Properties\AssemblyInfo.cs(19,12): error CS0246: The type or namespace name 'GuidAttribute' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>Properties\AssemblyInfo.cs(19,12): error CS0246: The type or namespace name 'Guid' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>Done Building Project "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj" (default targets) -- FAILED.
     2>Done Building Project "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj" (default targets) -- FAILED.
     1>Done Building Project "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.sln" (Build target(s)) -- FAILED.

Build FAILED.

       "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.sln" (Build target) (1) ->
       "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj" (default target) (2) ->
       "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj" (default target) (2:3) ->
       (CoreCompile target) ->
         Properties\AssemblyInfo.cs(19,12): error CS0246: The type or namespace name 'GuidAttribute' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         Properties\AssemblyInfo.cs(19,12): error CS0246: The type or namespace name 'Guid' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]

    0 Warning(s)
    2 Error(s)

Time Elapsed 00:00:01.44
C:\dev\MegaLib\Preview3-migrate-bug [master ≡ +0 ~1 -0 !]>

@vcsjones
Copy link
Member

vcsjones commented Nov 29, 2016

@onovotny

I'm not so sure this is a migration issue.

Even creating a scratch, clean, project, I can't use the GuidAttribute type. This type is a little funny because it's contract lives in corefx but the implementation is in coreclr.

Digging in a bit deeper, it looks like the GuidAttribute contract was erroneously made available in netstandard1.0 and should have been netstandard1.1+. It was fixed in https://github.com/dotnet/corefx/issues/7869#issuecomment-214858689. Your project is targeting netstandard1.0, so the compilation failure is it cannot find the type.

Removing the netstandard1.0 from the target frameworks fixed it. Alternatively, you could remove it from the AssemblyInfo.cs.

@TheRealPiotrP
Copy link
Contributor

@onovotny thoughts?

@clairernovotny
Copy link
Member Author

even after removing the GuidAttribute from the assembly info, it still fails to build:

C:\dev\MegaLib\Preview3-migrate-bug [master ≡ +0 ~2 -0 !]> nuget restore
MSBuild auto-detection: using msbuild version '14.0' from 'C:\Program Files (x86)\MSBuild\14.0\bin'.
C:\dev\MegaLib\Preview3-migrate-bug [master ≡ +0 ~2 -0 !]> dotnet restore
  Restoring packages for C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj...
  Lock file has not changed. Skipping lock file write. Path: C:\dev\MegaLib\Preview3-migrate-bug\obj\project.assets.json
  Generating MSBuild file C:\dev\MegaLib\Preview3-migrate-bug\obj\MegaLib.csproj.nuget.g.targets.
  Generating MSBuild file C:\dev\MegaLib\Preview3-migrate-bug\obj\MegaLib.csproj.nuget.g.props.
  Restore completed in 4387.6789ms for C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj.

  NuGet Config files used:
      C:\Users\oren\AppData\Roaming\NuGet\NuGet.Config
      C:\Program Files (x86)\NuGet\Config\Microsoft.VisualStudio.Offline.config

  Feeds used:
      https://api.nuget.org/v3/index.json
      https://www.nuget.org/api/v2/
      C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\
C:\dev\MegaLib\Preview3-migrate-bug [master ≡ +0 ~2 -0 !]> dotnet build
Microsoft (R) Build Engine version 15.1.0.0
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 12/1/2016 8:03:55 AM.
     1>Project "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.sln" on node 1 (Build target(s)).
     1>ValidateSolutionConfiguration:
         Building solution configuration "Release|Any CPU".
     1>Project "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.sln" (1) is building "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj" (2) on node 1 (default targets).
     2>Project "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj" (2) is building "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj" (2:2) on node 1 (default targets).
     2>GenerateTargetFrameworkMonikerAttribute:
       Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
       CoreGenerateAssemblyInfo:
       Skipping target "CoreGenerateAssemblyInfo" because all output files are up-to-date with respect to the input files.
       CoreCompile:
       Skipping target "CoreCompile" because all output files are up-to-date with respect to the input files.
       CopyFilesToOutputDirectory:
         MegaLib -> C:\dev\MegaLib\Preview3-migrate-bug\bin\Release\netstandard1.3\MegaLib.dll
       GenerateBuildDependencyFile:
       Skipping target "GenerateBuildDependencyFile" because all output files are up-to-date with respect to the input files.
     2>Done Building Project "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj" (default targets).
     2>Project "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj" (2) is building "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj" (2:3) on node 1 (default targets).
     2>GenerateTargetFrameworkMonikerAttribute:
       Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
       CoreGenerateAssemblyInfo:
       Skipping target "CoreGenerateAssemblyInfo" because all output files are up-to-date with respect to the input files.
       CoreCompile:
       Skipping target "CoreCompile" because all output files are up-to-date with respect to the input files.
       CopyFilesToOutputDirectory:
         MegaLib -> C:\dev\MegaLib\Preview3-migrate-bug\bin\Release\netstandard1.0\MegaLib.dll
       GenerateBuildDependencyFile:
       Skipping target "GenerateBuildDependencyFile" because all output files are up-to-date with respect to the input files.
     2>Done Building Project "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj" (default targets).
     2>Project "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj" (2) is building "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj" (2:4) on node 1 (default targets).
     2>GenerateTargetFrameworkMonikerAttribute:
       Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
       CoreGenerateAssemblyInfo:
       Skipping target "CoreGenerateAssemblyInfo" because all output files are up-to-date with respect to the input files.
       CoreCompile:
       Skipping target "CoreCompile" because all output files are up-to-date with respect to the input files.
       CopyFilesToOutputDirectory:
         MegaLib -> C:\dev\MegaLib\Preview3-migrate-bug\bin\Release\net45\MegaLib.dll
     2>Done Building Project "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj" (default targets).
     2>Project "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj" (2) is building "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj" (2:5) on node 1 (default targets).
     2>ResolveAssemblyReferences:
         A TargetFramework profile exclusion list will be generated.
       GenerateTargetFrameworkMonikerAttribute:
       Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
       CoreGenerateAssemblyInfo:
       Skipping target "CoreGenerateAssemblyInfo" because all output files are up-to-date with respect to the input files.
       CoreCompile:
         C:\Program Files\dotnet\sdk\1.0.0-preview3-004056\RunCsc.cmd /noconfig /nowarn:1701,1702,1705,1701,1702 /nostdlib+ /errorreport:prompt /warn:4 /define:TRACE;RELEASE /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETPortable\v4.6\Profile\Profile32\mscorlib.dll" /reference:C:\Users\oren\.nuget\packages\system.runtime.interopservices.runtimeinformation\4.3.0\ref\netstandard1.1\System.Runtime.InteropServices.RuntimeInformation.dll /debug:portable /filealign:512 /nologo /optimize+ /out:obj\Release\portable46-win81+wpa81\MegaLib.dll /target:library /utf8output /deterministic+ Class1.cs Properties\AssemblyInfo.cs "C:\Users\oren\AppData\Local\Temp\.NETPortable,Version=v4.6,Profile=Profile32.AssemblyAttributes.cs" obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs
     2>Properties\AssemblyInfo.cs(8,12): error CS0246: The type or namespace name 'AssemblyConfigurationAttribute' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>Properties\AssemblyInfo.cs(8,12): error CS0246: The type or namespace name 'AssemblyConfiguration' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>Properties\AssemblyInfo.cs(9,12): error CS0246: The type or namespace name 'AssemblyCompanyAttribute' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>Properties\AssemblyInfo.cs(9,12): error CS0246: The type or namespace name 'AssemblyCompany' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>Properties\AssemblyInfo.cs(10,12): error CS0246: The type or namespace name 'AssemblyProductAttribute' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>Properties\AssemblyInfo.cs(10,12): error CS0246: The type or namespace name 'AssemblyProduct' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>Properties\AssemblyInfo.cs(11,12): error CS0246: The type or namespace name 'AssemblyTrademarkAttribute' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>Properties\AssemblyInfo.cs(11,12): error CS0246: The type or namespace name 'AssemblyTrademark' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>Properties\AssemblyInfo.cs(16,12): error CS0246: The type or namespace name 'ComVisibleAttribute' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>Properties\AssemblyInfo.cs(16,12): error CS0246: The type or namespace name 'ComVisible' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>C:\Users\oren\AppData\Local\Temp\.NETPortable,Version=v4.6,Profile=Profile32.AssemblyAttributes.cs(4,46): error CS0234: The type or namespace name 'TargetFrameworkAttributeAttribute' does not exist in the namespace 'System.Runtime.Versioning' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>C:\Users\oren\AppData\Local\Temp\.NETPortable,Version=v4.6,Profile=Profile32.AssemblyAttributes.cs(4,46): error CS0234: The type or namespace name 'TargetFrameworkAttribute' does not exist in the namespace 'System.Runtime.Versioning' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(14,30): error CS0234: The type or namespace name 'AssemblyDescriptionAttributeAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(14,30): error CS0234: The type or namespace name 'AssemblyDescriptionAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(15,30): error CS0234: The type or namespace name 'AssemblyFileVersionAttributeAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(15,30): error CS0234: The type or namespace name 'AssemblyFileVersionAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(16,30): error CS0234: The type or namespace name 'AssemblyInformationalVersionAttributeAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(16,30): error CS0234: The type or namespace name 'AssemblyInformationalVersionAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(17,30): error CS0234: The type or namespace name 'AssemblyTitleAttributeAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(17,30): error CS0234: The type or namespace name 'AssemblyTitleAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(18,30): error CS0234: The type or namespace name 'AssemblyVersionAttributeAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(18,30): error CS0234: The type or namespace name 'AssemblyVersionAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(19,29): error CS0234: The type or namespace name 'NeutralResourcesLanguageAttributeAttribute' does not exist in the namespace 'System.Resources' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(19,29): error CS0234: The type or namespace name 'NeutralResourcesLanguageAttribute' does not exist in the namespace 'System.Resources' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>Properties\AssemblyInfo.cs(8,34): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>Properties\AssemblyInfo.cs(9,28): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>Properties\AssemblyInfo.cs(10,28): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>Properties\AssemblyInfo.cs(11,30): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>Properties\AssemblyInfo.cs(16,23): error CS0518: Predefined type 'System.Boolean' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>C:\Users\oren\AppData\Local\Temp\.NETPortable,Version=v4.6,Profile=Profile32.AssemblyAttributes.cs(4,71): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>C:\Users\oren\AppData\Local\Temp\.NETPortable,Version=v4.6,Profile=Profile32.AssemblyAttributes.cs(4,118): error CS0246: The type or namespace name 'FrameworkDisplayName' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>C:\Users\oren\AppData\Local\Temp\.NETPortable,Version=v4.6,Profile=Profile32.AssemblyAttributes.cs(4,141): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(14,59): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(15,59): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(16,68): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(17,53): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(18,55): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(19,63): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>Class1.cs(3,14): error CS0234: The type or namespace name 'Linq' does not exist in the namespace 'System' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>Class1.cs(8,18): error CS0518: Predefined type 'System.Object' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>Class1.cs(10,9): error CS0518: Predefined type 'System.Void' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>Done Building Project "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj" (default targets) -- FAILED.
     2>Done Building Project "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj" (default targets) -- FAILED.
     1>Done Building Project "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.sln" (Build target(s)) -- FAILED.

Build FAILED.

       "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.sln" (Build target) (1) ->
       "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj" (default target) (2) ->
       "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj" (default target) (2:5) ->
       (CoreCompile target) ->
         Properties\AssemblyInfo.cs(8,12): error CS0246: The type or namespace name 'AssemblyConfigurationAttribute' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         Properties\AssemblyInfo.cs(8,12): error CS0246: The type or namespace name 'AssemblyConfiguration' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         Properties\AssemblyInfo.cs(9,12): error CS0246: The type or namespace name 'AssemblyCompanyAttribute' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         Properties\AssemblyInfo.cs(9,12): error CS0246: The type or namespace name 'AssemblyCompany' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         Properties\AssemblyInfo.cs(10,12): error CS0246: The type or namespace name 'AssemblyProductAttribute' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         Properties\AssemblyInfo.cs(10,12): error CS0246: The type or namespace name 'AssemblyProduct' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         Properties\AssemblyInfo.cs(11,12): error CS0246: The type or namespace name 'AssemblyTrademarkAttribute' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         Properties\AssemblyInfo.cs(11,12): error CS0246: The type or namespace name 'AssemblyTrademark' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         Properties\AssemblyInfo.cs(16,12): error CS0246: The type or namespace name 'ComVisibleAttribute' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         Properties\AssemblyInfo.cs(16,12): error CS0246: The type or namespace name 'ComVisible' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         C:\Users\oren\AppData\Local\Temp\.NETPortable,Version=v4.6,Profile=Profile32.AssemblyAttributes.cs(4,46): error CS0234: The type or namespace name 'TargetFrameworkAttributeAttribute' does not exist in the namespace 'System.Runtime.Versioning' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         C:\Users\oren\AppData\Local\Temp\.NETPortable,Version=v4.6,Profile=Profile32.AssemblyAttributes.cs(4,46): error CS0234: The type or namespace name 'TargetFrameworkAttribute' does not exist in the namespace 'System.Runtime.Versioning' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(14,30): error CS0234: The type or namespace name 'AssemblyDescriptionAttributeAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(14,30): error CS0234: The type or namespace name 'AssemblyDescriptionAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(15,30): error CS0234: The type or namespace name 'AssemblyFileVersionAttributeAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(15,30): error CS0234: The type or namespace name 'AssemblyFileVersionAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(16,30): error CS0234: The type or namespace name 'AssemblyInformationalVersionAttributeAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(16,30): error CS0234: The type or namespace name 'AssemblyInformationalVersionAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(17,30): error CS0234: The type or namespace name 'AssemblyTitleAttributeAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(17,30): error CS0234: The type or namespace name 'AssemblyTitleAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(18,30): error CS0234: The type or namespace name 'AssemblyVersionAttributeAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(18,30): error CS0234: The type or namespace name 'AssemblyVersionAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(19,29): error CS0234: The type or namespace name 'NeutralResourcesLanguageAttributeAttribute' does not exist in the namespace 'System.Resources' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(19,29): error CS0234: The type or namespace name 'NeutralResourcesLanguageAttribute' does not exist in the namespace 'System.Resources' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         Properties\AssemblyInfo.cs(8,34): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         Properties\AssemblyInfo.cs(9,28): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         Properties\AssemblyInfo.cs(10,28): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         Properties\AssemblyInfo.cs(11,30): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         Properties\AssemblyInfo.cs(16,23): error CS0518: Predefined type 'System.Boolean' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         C:\Users\oren\AppData\Local\Temp\.NETPortable,Version=v4.6,Profile=Profile32.AssemblyAttributes.cs(4,71): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         C:\Users\oren\AppData\Local\Temp\.NETPortable,Version=v4.6,Profile=Profile32.AssemblyAttributes.cs(4,118): error CS0246: The type or namespace name 'FrameworkDisplayName' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         C:\Users\oren\AppData\Local\Temp\.NETPortable,Version=v4.6,Profile=Profile32.AssemblyAttributes.cs(4,141): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(14,59): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(15,59): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(16,68): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(17,53): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(18,55): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(19,63): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         Class1.cs(3,14): error CS0234: The type or namespace name 'Linq' does not exist in the namespace 'System' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         Class1.cs(8,18): error CS0518: Predefined type 'System.Object' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         Class1.cs(10,9): error CS0518: Predefined type 'System.Void' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]

    0 Warning(s)
    41 Error(s)

Time Elapsed 00:00:16.56
C:\dev\MegaLib\Preview3-migrate-bug [master ≡ +0 ~2 -0 !]>

@TheRealPiotrP
Copy link
Contributor

@onovotny did you try to git clean? it looks like there is a bunch of leftover state [also interesting to clean up I think... @srivatsn?] that is causing a bunch of targets to skip. I removed the Guid attribute on a clean clone and build succeeded for netcoreapp1.0 and 1.3. It failed for net45 because OS X.

@clairernovotny
Copy link
Member Author

Yes, no dice. It's failing on the Profile32 ones, the UAP10.0 one and the WP8 one:

C:\dev\MegaLib\Preview3-migrate-bug [master ≡ +0 ~2 -0 !]> git clean -xdf
Removing .vs/
Removing MegaLib.xproj.user
Removing _ReSharper.Caches/
Removing bin/
Removing obj/
Removing project.lock.json
C:\dev\MegaLib\Preview3-migrate-bug [master ≡ +0 ~2 -0 !]> ls


    Directory: C:\dev\MegaLib\Preview3-migrate-bug


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----       11/26/2016   3:17 PM                backup
d-----       11/22/2016   5:06 PM                Properties
-a----       11/26/2016   3:51 PM           4448 .gitignore
-a----       11/22/2016   5:06 PM            217 Class1.cs
-a----       11/26/2016   3:49 PM           1090 LICENSE
-a----       11/27/2016   3:51 PM           1800 MegaLib.csproj
-a----       11/26/2016   3:24 PM            785 MegaLib.sln
-a----       11/26/2016   3:49 PM             22 README.md


C:\dev\MegaLib\Preview3-migrate-bug [master ≡ +0 ~2 -0 !]> dotnet restore
  Restoring packages for C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj...
  Writing lock file to disk. Path: C:\dev\MegaLib\Preview3-migrate-bug\obj\project.assets.json
  Generating MSBuild file C:\dev\MegaLib\Preview3-migrate-bug\obj\MegaLib.csproj.nuget.g.targets.
  Generating MSBuild file C:\dev\MegaLib\Preview3-migrate-bug\obj\MegaLib.csproj.nuget.g.props.
  Restore completed in 1229.9918ms for C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj.

  NuGet Config files used:
      C:\Users\oren\AppData\Roaming\NuGet\NuGet.Config
      C:\Program Files (x86)\NuGet\Config\Microsoft.VisualStudio.Offline.config

  Feeds used:
      https://api.nuget.org/v3/index.json
      https://www.nuget.org/api/v2/
      C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\
C:\dev\MegaLib\Preview3-migrate-bug [master ≡ +0 ~2 -0 !]> dotnet build
Microsoft (R) Build Engine version 15.1.0.0
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 12/1/2016 2:13:13 PM.
     1>Project "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.sln" on node 1 (Build target(s)).
     1>ValidateSolutionConfiguration:
         Building solution configuration "Release|Any CPU".
     1>Project "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.sln" (1) is building "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj" (2) on node 1 (default targets).
     2>Project "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj" (2) is building "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj" (2:2) on node 1 (default targets).
     2>PrepareForBuild:
         Creating directory "bin\Release\netstandard1.3\".
         Creating directory "obj\Release\netstandard1.3\".
       GenerateTargetFrameworkMonikerAttribute:
       Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
       CoreCompile:
         C:\Program Files\dotnet\sdk\1.0.0-preview3-004056\RunCsc.cmd /noconfig /nowarn:1701,1702,1705,1701,1702 /nostdlib+ /errorreport:prompt /warn:4 /define:TRACE;RELEASE;NETSTANDARD1_3 /reference:C:\Users\oren\.nuget\packages\microsoft.win32.primitives\4.3.0\ref\netstandard1.3\Microsoft.Win32.Primitives.dll /reference:C:\Users\oren\.nuget\packages\system.appcontext\4.3.0\ref\netstandard1.3\System.AppContext.dll /reference:C:\Users\oren\.nuget\packages\system.collections.concurrent\4.3.0\ref\netstandard1.3\System.Collections.Concurrent.dll /reference:C:\Users\oren\.nuget\packages\system.collections\4.3.0\ref\netstandard1.3\System.Collections.dll /reference:C:\Users\oren\.nuget\packages\system.console\4.3.0\ref\netstandard1.3\System.Console.dll /reference:C:\Users\oren\.nuget\packages\system.diagnostics.debug\4.3.0\ref\netstandard1.3\System.Diagnostics.Debug.dll /reference:C:\Users\oren\.nuget\packages\system.diagnostics.tools\4.3.0\ref\netstandard1.0\System.Diagnostics.Tools.dll /reference:C:\Users\oren\.nuget\packages\system.diagnostics.tracing\4.3.0\ref\netstandard1.3\System.Diagnostics.Tracing.dll /reference:C:\Users\oren\.nuget\packages\system.globalization.calendars\4.3.0\ref\netstandard1.3\System.Globalization.Calendars.dll /reference:C:\Users\oren\.nuget\packages\system.globalization\4.3.0\ref\netstandard1.3\System.Globalization.dll /reference:C:\Users\oren\.nuget\packages\system.io.compression\4.3.0\ref\netstandard1.3\System.IO.Compression.dll /reference:C:\Users\oren\.nuget\packages\system.io.compression.zipfile\4.3.0\ref\netstandard1.3\System.IO.Compression.ZipFile.dll /reference:C:\Users\oren\.nuget\packages\system.io\4.3.0\ref\netstandard1.3\System.IO.dll /reference:C:\Users\oren\.nuget\packages\system.io.filesystem\4.3.0\ref\netstandard1.3\System.IO.FileSystem.dll /reference:C:\Users\oren\.nuget\packages\system.io.filesystem.primitives\4.3.0\ref\netstandard1.3\System.IO.FileSystem.Primitives.dll /reference:C:\Users\oren\.nuget\packages\system.linq\4.3.0\ref\netstandard1.0\System.Linq.dll /reference:C:\Users\oren\.nuget\packages\system.linq.expressions\4.3.0\ref\netstandard1.3\System.Linq.Expressions.dll /reference:C:\Users\oren\.nuget\packages\system.net.http\4.3.0\ref\netstandard1.3\System.Net.Http.dll /reference:C:\Users\oren\.nuget\packages\system.net.primitives\4.3.0\ref\netstandard1.3\System.Net.Primitives.dll /reference:C:\Users\oren\.nuget\packages\system.net.sockets\4.3.0\ref\netstandard1.3\System.Net.Sockets.dll /reference:C:\Users\oren\.nuget\packages\system.objectmodel\4.3.0\ref\netstandard1.3\System.ObjectModel.dll /reference:C:\Users\oren\.nuget\packages\system.reflection\4.3.0\ref\netstandard1.3\System.Reflection.dll /reference:C:\Users\oren\.nuget\packages\system.reflection.extensions\4.3.0\ref\netstandard1.0\System.Reflection.Extensions.dll /reference:C:\Users\oren\.nuget\packages\system.reflection.primitives\4.3.0\ref\netstandard1.0\System.Reflection.Primitives.dll /reference:C:\Users\oren\.nuget\packages\system.resources.resourcemanager\4.3.0\ref\netstandard1.0\System.Resources.ResourceManager.dll /reference:C:\Users\oren\.nuget\packages\system.runtime\4.3.0\ref\netstandard1.3\System.Runtime.dll /reference:C:\Users\oren\.nuget\packages\system.runtime.extensions\4.3.0\ref\netstandard1.3\System.Runtime.Extensions.dll /reference:C:\Users\oren\.nuget\packages\system.runtime.handles\4.3.0\ref\netstandard1.3\System.Runtime.Handles.dll /reference:C:\Users\oren\.nuget\packages\system.runtime.interopservices\4.3.0\ref\netstandard1.3\System.Runtime.InteropServices.dll /reference:C:\Users\oren\.nuget\packages\system.runtime.interopservices.runtimeinformation\4.3.0\ref\netstandard1.1\System.Runtime.InteropServices.RuntimeInformation.dll /reference:C:\Users\oren\.nuget\packages\system.runtime.numerics\4.3.0\ref\netstandard1.1\System.Runtime.Numerics.dll /reference:C:\Users\oren\.nuget\packages\system.security.cryptography.algorithms\4.3.0\ref\netstandard1.3\System.Security.Cryptography.Algorithms.dll /reference:C:\Users\oren\.nuget\packages\system.security.cryptography.encoding\4.3.0\ref\netstandard1.3\System.Security.Cryptography.Encoding.dll /reference:C:\Users\oren\.nuget\packages\system.security.cryptography.primitives\4.3.0\ref\netstandard1.3\System.Security.Cryptography.Primitives.dll /reference:C:\Users\oren\.nuget\packages\system.security.cryptography.x509certificates\4.3.0\ref\netstandard1.3\System.Security.Cryptography.X509Certificates.dll /reference:C:\Users\oren\.nuget\packages\system.text.encoding\4.3.0\ref\netstandard1.3\System.Text.Encoding.dll /reference:C:\Users\oren\.nuget\packages\system.text.encoding.extensions\4.3.0\ref\netstandard1.3\System.Text.Encoding.Extensions.dll /reference:C:\Users\oren\.nuget\packages\system.text.regularexpressions\4.3.0\ref\netstandard1.3\System.Text.RegularExpressions.dll /reference:C:\Users\oren\.nuget\packages\system.threading\4.3.0\ref\netstandard1.3\System.Threading.dll /reference:C:\Users\oren\.nuget\packages\system.threading.tasks\4.3.0\ref\netstandard1.3\System.Threading.Tasks.dll /reference:C:\Users\oren\.nuget\packages\system.threading.timer\4.3.0\ref\netstandard1.2\System.Threading.Timer.dll /reference:C:\Users\oren\.nuget\packages\system.xml.readerwriter\4.3.0\ref\netstandard1.3\System.Xml.ReaderWriter.dll /reference:C:\Users\oren\.nuget\packages\system.xml.xdocument\4.3.0\ref\netstandard1.3\System.Xml.XDocument.dll /debug:portable /filealign:512 /nologo /optimize+ /out:obj\Release\netstandard1.3\MegaLib.dll /target:library /utf8output /deterministic+ Class1.cs Properties\AssemblyInfo.cs "C:\Users\oren\AppData\Local\Temp\.NETStandard,Version=v1.3.AssemblyAttributes.cs" obj\Release\netstandard1.3\MegaLib.AssemblyInfo.cs
       CopyFilesToOutputDirectory:
         Copying file from "obj\Release\netstandard1.3\MegaLib.dll" to "bin\Release\netstandard1.3\MegaLib.dll".
         MegaLib -> C:\dev\MegaLib\Preview3-migrate-bug\bin\Release\netstandard1.3\MegaLib.dll
         Copying file from "obj\Release\netstandard1.3\MegaLib.pdb" to "bin\Release\netstandard1.3\MegaLib.pdb".
     2>Done Building Project "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj" (default targets).
     2>Project "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj" (2) is building "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj" (2:3) on node 1 (default targets).
     2>PrepareForBuild:
         Creating directory "bin\Release\netstandard1.0\".
         Creating directory "obj\Release\netstandard1.0\".
       GenerateTargetFrameworkMonikerAttribute:
       Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
       CoreCompile:
         C:\Program Files\dotnet\sdk\1.0.0-preview3-004056\RunCsc.cmd /noconfig /nowarn:1701,1702,1705 /nostdlib+ /errorreport:prompt /warn:4 /define:TRACE;RELEASE;NETSTANDARD1_0 /reference:C:\Users\oren\.nuget\packages\system.collections\4.3.0\ref\netstandard1.0\System.Collections.dll /reference:C:\Users\oren\.nuget\packages\system.diagnostics.debug\4.3.0\ref\netstandard1.0\System.Diagnostics.Debug.dll /reference:C:\Users\oren\.nuget\packages\system.diagnostics.tools\4.3.0\ref\netstandard1.0\System.Diagnostics.Tools.dll /reference:C:\Users\oren\.nuget\packages\system.globalization\4.3.0\ref\netstandard1.0\System.Globalization.dll /reference:C:\Users\oren\.nuget\packages\system.io\4.3.0\ref\netstandard1.0\System.IO.dll /reference:C:\Users\oren\.nuget\packages\system.linq\4.3.0\ref\netstandard1.0\System.Linq.dll /reference:C:\Users\oren\.nuget\packages\system.linq.expressions\4.3.0\ref\netstandard1.0\System.Linq.Expressions.dll /reference:C:\Users\oren\.nuget\packages\system.net.primitives\4.3.0\ref\netstandard1.0\System.Net.Primitives.dll /reference:C:\Users\oren\.nuget\packages\system.objectmodel\4.3.0\ref\netstandard1.0\System.ObjectModel.dll /reference:C:\Users\oren\.nuget\packages\system.reflection\4.3.0\ref\netstandard1.0\System.Reflection.dll /reference:C:\Users\oren\.nuget\packages\system.reflection.extensions\4.3.0\ref\netstandard1.0\System.Reflection.Extensions.dll /reference:C:\Users\oren\.nuget\packages\system.reflection.primitives\4.3.0\ref\netstandard1.0\System.Reflection.Primitives.dll /reference:C:\Users\oren\.nuget\packages\system.resources.resourcemanager\4.3.0\ref\netstandard1.0\System.Resources.ResourceManager.dll /reference:C:\Users\oren\.nuget\packages\system.runtime\4.3.0\ref\netstandard1.0\System.Runtime.dll /reference:C:\Users\oren\.nuget\packages\system.runtime.extensions\4.3.0\ref\netstandard1.0\System.Runtime.Extensions.dll /reference:C:\Users\oren\.nuget\packages\system.text.encoding\4.3.0\ref\netstandard1.0\System.Text.Encoding.dll /reference:C:\Users\oren\.nuget\packages\system.text.encoding.extensions\4.3.0\ref\netstandard1.0\System.Text.Encoding.Extensions.dll /reference:C:\Users\oren\.nuget\packages\system.text.regularexpressions\4.3.0\ref\netstandard1.0\System.Text.RegularExpressions.dll /reference:C:\Users\oren\.nuget\packages\system.threading\4.3.0\ref\netstandard1.0\System.Threading.dll /reference:C:\Users\oren\.nuget\packages\system.threading.tasks\4.3.0\ref\netstandard1.0\System.Threading.Tasks.dll /reference:C:\Users\oren\.nuget\packages\system.xml.readerwriter\4.3.0\ref\netstandard1.0\System.Xml.ReaderWriter.dll /reference:C:\Users\oren\.nuget\packages\system.xml.xdocument\4.3.0\ref\netstandard1.0\System.Xml.XDocument.dll /debug:portable /filealign:512 /nologo /optimize+ /out:obj\Release\netstandard1.0\MegaLib.dll /target:library /utf8output /deterministic+ Class1.cs Properties\AssemblyInfo.cs "C:\Users\oren\AppData\Local\Temp\.NETStandard,Version=v1.0.AssemblyAttributes.cs" obj\Release\netstandard1.0\MegaLib.AssemblyInfo.cs
       CopyFilesToOutputDirectory:
         Copying file from "obj\Release\netstandard1.0\MegaLib.dll" to "bin\Release\netstandard1.0\MegaLib.dll".
         MegaLib -> C:\dev\MegaLib\Preview3-migrate-bug\bin\Release\netstandard1.0\MegaLib.dll
         Copying file from "obj\Release\netstandard1.0\MegaLib.pdb" to "bin\Release\netstandard1.0\MegaLib.pdb".
     2>Done Building Project "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj" (default targets).
     2>Project "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj" (2) is building "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj" (2:4) on node 1 (default targets).
     2>PrepareForBuild:
         Creating directory "bin\Release\net45\".
         Creating directory "obj\Release\net45\".
       GenerateTargetFrameworkMonikerAttribute:
       Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
       CoreCompile:
         C:\Program Files\dotnet\sdk\1.0.0-preview3-004056\RunCsc.cmd /noconfig /nowarn:1701,1702,1705,1701,1702 /nostdlib+ /errorreport:prompt /warn:4 /define:TRACE;RELEASE;NET45 /highentropyva+ /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Microsoft.CSharp.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\mscorlib.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Core.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.dll" /reference:C:\Users\oren\.nuget\packages\system.runtime.interopservices.runtimeinformation\4.3.0\ref\netstandard1.1\System.Runtime.InteropServices.RuntimeInformation.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.Collections.Concurrent.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.Collections.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.ComponentModel.Annotations.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.ComponentModel.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.ComponentModel.EventBasedAsync.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.Diagnostics.Contracts.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.Diagnostics.Debug.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.Diagnostics.Tools.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.Diagnostics.Tracing.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.Dynamic.Runtime.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.Globalization.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.IO.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.Linq.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.Linq.Expressions.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.Linq.Parallel.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.Linq.Queryable.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.Net.NetworkInformation.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.Net.Primitives.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.Net.Requests.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.ObjectModel.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.Reflection.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.Reflection.Emit.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.Reflection.Emit.ILGeneration.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.Reflection.Emit.Lightweight.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.Reflection.Extensions.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.Reflection.Primitives.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.Resources.ResourceManager.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.Runtime.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.Runtime.Extensions.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.Runtime.InteropServices.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.Runtime.InteropServices.WindowsRuntime.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.Runtime.Numerics.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.Runtime.Serialization.Json.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.Runtime.Serialization.Primitives.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.Runtime.Serialization.Xml.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.Security.Principal.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.ServiceModel.Duplex.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.ServiceModel.Http.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.ServiceModel.NetTcp.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.ServiceModel.Primitives.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.ServiceModel.Security.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.Text.Encoding.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.Text.Encoding.Extensions.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.Text.RegularExpressions.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.Threading.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.Threading.Tasks.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.Threading.Tasks.Parallel.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.Xml.ReaderWriter.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.Xml.XDocument.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades\System.Xml.XmlSerializer.dll" /debug:portable /filealign:512 /nologo /optimize+ /out:obj\Release\net45\MegaLib.dll /subsystemversion:6.00 /target:library /utf8output /deterministic+ Class1.cs Properties\AssemblyInfo.cs "C:\Users\oren\AppData\Local\Temp\.NETFramework,Version=v4.5.AssemblyAttributes.cs" obj\Release\net45\MegaLib.AssemblyInfo.cs
       _CopyFilesMarkedCopyLocal:
         Copying file from "C:\Users\oren\.nuget\packages\system.runtime.interopservices.runtimeinformation\4.3.0\lib\net45\System.Runtime.InteropServices.RuntimeInformation.dll" to "bin\Release\net45\System.Runtime.InteropServices.RuntimeInformation.dll".
       CopyFilesToOutputDirectory:
         Copying file from "obj\Release\net45\MegaLib.dll" to "bin\Release\net45\MegaLib.dll".
         MegaLib -> C:\dev\MegaLib\Preview3-migrate-bug\bin\Release\net45\MegaLib.dll
         Copying file from "obj\Release\net45\MegaLib.pdb" to "bin\Release\net45\MegaLib.pdb".
     2>Done Building Project "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj" (default targets).
     2>Project "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj" (2) is building "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj" (2:5) on node 1 (default targets).
     2>PrepareForBuild:
         Creating directory "bin\Release\portable46-win81+wpa81\".
         Creating directory "obj\Release\portable46-win81+wpa81\".
       ResolveAssemblyReferences:
         A TargetFramework profile exclusion list will be generated.
       GenerateTargetFrameworkMonikerAttribute:
       Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
       CoreCompile:
         C:\Program Files\dotnet\sdk\1.0.0-preview3-004056\RunCsc.cmd /noconfig /nowarn:1701,1702,1705,1701,1702 /nostdlib+ /errorreport:prompt /warn:4 /define:TRACE;RELEASE /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETPortable\v4.6\Profile\Profile32\mscorlib.dll" /reference:C:\Users\oren\.nuget\packages\system.runtime.interopservices.runtimeinformation\4.3.0\ref\netstandard1.1\System.Runtime.InteropServices.RuntimeInformation.dll /debug:portable /filealign:512 /nologo /optimize+ /out:obj\Release\portable46-win81+wpa81\MegaLib.dll /target:library /utf8output /deterministic+ Class1.cs Properties\AssemblyInfo.cs "C:\Users\oren\AppData\Local\Temp\.NETPortable,Version=v4.6,Profile=Profile32.AssemblyAttributes.cs" obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs
     2>Properties\AssemblyInfo.cs(8,12): error CS0246: The type or namespace name 'AssemblyConfigurationAttribute' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>Properties\AssemblyInfo.cs(8,12): error CS0246: The type or namespace name 'AssemblyConfiguration' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>Properties\AssemblyInfo.cs(9,12): error CS0246: The type or namespace name 'AssemblyCompanyAttribute' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>Properties\AssemblyInfo.cs(9,12): error CS0246: The type or namespace name 'AssemblyCompany' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>Properties\AssemblyInfo.cs(10,12): error CS0246: The type or namespace name 'AssemblyProductAttribute' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>Properties\AssemblyInfo.cs(10,12): error CS0246: The type or namespace name 'AssemblyProduct' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>Properties\AssemblyInfo.cs(11,12): error CS0246: The type or namespace name 'AssemblyTrademarkAttribute' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>Properties\AssemblyInfo.cs(11,12): error CS0246: The type or namespace name 'AssemblyTrademark' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>Properties\AssemblyInfo.cs(16,12): error CS0246: The type or namespace name 'ComVisibleAttribute' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>Properties\AssemblyInfo.cs(16,12): error CS0246: The type or namespace name 'ComVisible' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>C:\Users\oren\AppData\Local\Temp\.NETPortable,Version=v4.6,Profile=Profile32.AssemblyAttributes.cs(4,46): error CS0234: The type or namespace name 'TargetFrameworkAttributeAttribute' does not exist in the namespace 'System.Runtime.Versioning' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>C:\Users\oren\AppData\Local\Temp\.NETPortable,Version=v4.6,Profile=Profile32.AssemblyAttributes.cs(4,46): error CS0234: The type or namespace name 'TargetFrameworkAttribute' does not exist in the namespace 'System.Runtime.Versioning' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(6,30): error CS0234: The type or namespace name 'AssemblyDescriptionAttributeAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(6,30): error CS0234: The type or namespace name 'AssemblyDescriptionAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(7,30): error CS0234: The type or namespace name 'AssemblyFileVersionAttributeAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(7,30): error CS0234: The type or namespace name 'AssemblyFileVersionAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(8,30): error CS0234: The type or namespace name 'AssemblyInformationalVersionAttributeAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(8,30): error CS0234: The type or namespace name 'AssemblyInformationalVersionAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(9,30): error CS0234: The type or namespace name 'AssemblyTitleAttributeAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(9,30): error CS0234: The type or namespace name 'AssemblyTitleAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(10,30): error CS0234: The type or namespace name 'AssemblyVersionAttributeAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(10,30): error CS0234: The type or namespace name 'AssemblyVersionAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(11,29): error CS0234: The type or namespace name 'NeutralResourcesLanguageAttributeAttribute' does not exist in the namespace 'System.Resources' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(11,29): error CS0234: The type or namespace name 'NeutralResourcesLanguageAttribute' does not exist in the namespace 'System.Resources' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>Properties\AssemblyInfo.cs(8,34): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>Properties\AssemblyInfo.cs(9,28): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>Properties\AssemblyInfo.cs(10,28): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>Properties\AssemblyInfo.cs(11,30): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>Properties\AssemblyInfo.cs(16,23): error CS0518: Predefined type 'System.Boolean' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>C:\Users\oren\AppData\Local\Temp\.NETPortable,Version=v4.6,Profile=Profile32.AssemblyAttributes.cs(4,71): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>C:\Users\oren\AppData\Local\Temp\.NETPortable,Version=v4.6,Profile=Profile32.AssemblyAttributes.cs(4,118): error CS0246: The type or namespace name 'FrameworkDisplayName' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>C:\Users\oren\AppData\Local\Temp\.NETPortable,Version=v4.6,Profile=Profile32.AssemblyAttributes.cs(4,141): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(6,59): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(7,59): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(8,68): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(9,53): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(10,55): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(11,63): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>Class1.cs(3,14): error CS0234: The type or namespace name 'Linq' does not exist in the namespace 'System' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>Class1.cs(8,18): error CS0518: Predefined type 'System.Object' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>Class1.cs(10,9): error CS0518: Predefined type 'System.Void' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
     2>Done Building Project "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj" (default targets) -- FAILED.
     2>Done Building Project "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj" (default targets) -- FAILED.
     1>Done Building Project "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.sln" (Build target(s)) -- FAILED.

Build FAILED.

       "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.sln" (Build target) (1) ->
       "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj" (default target) (2) ->
       "C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj" (default target) (2:5) ->
       (CoreCompile target) ->
         Properties\AssemblyInfo.cs(8,12): error CS0246: The type or namespace name 'AssemblyConfigurationAttribute' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         Properties\AssemblyInfo.cs(8,12): error CS0246: The type or namespace name 'AssemblyConfiguration' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         Properties\AssemblyInfo.cs(9,12): error CS0246: The type or namespace name 'AssemblyCompanyAttribute' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         Properties\AssemblyInfo.cs(9,12): error CS0246: The type or namespace name 'AssemblyCompany' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         Properties\AssemblyInfo.cs(10,12): error CS0246: The type or namespace name 'AssemblyProductAttribute' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         Properties\AssemblyInfo.cs(10,12): error CS0246: The type or namespace name 'AssemblyProduct' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         Properties\AssemblyInfo.cs(11,12): error CS0246: The type or namespace name 'AssemblyTrademarkAttribute' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         Properties\AssemblyInfo.cs(11,12): error CS0246: The type or namespace name 'AssemblyTrademark' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         Properties\AssemblyInfo.cs(16,12): error CS0246: The type or namespace name 'ComVisibleAttribute' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         Properties\AssemblyInfo.cs(16,12): error CS0246: The type or namespace name 'ComVisible' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         C:\Users\oren\AppData\Local\Temp\.NETPortable,Version=v4.6,Profile=Profile32.AssemblyAttributes.cs(4,46): error CS0234: The type or namespace name 'TargetFrameworkAttributeAttribute' does not exist in the namespace 'System.Runtime.Versioning' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         C:\Users\oren\AppData\Local\Temp\.NETPortable,Version=v4.6,Profile=Profile32.AssemblyAttributes.cs(4,46): error CS0234: The type or namespace name 'TargetFrameworkAttribute' does not exist in the namespace 'System.Runtime.Versioning' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(6,30): error CS0234: The type or namespace name 'AssemblyDescriptionAttributeAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(6,30): error CS0234: The type or namespace name 'AssemblyDescriptionAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(7,30): error CS0234: The type or namespace name 'AssemblyFileVersionAttributeAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(7,30): error CS0234: The type or namespace name 'AssemblyFileVersionAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(8,30): error CS0234: The type or namespace name 'AssemblyInformationalVersionAttributeAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(8,30): error CS0234: The type or namespace name 'AssemblyInformationalVersionAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(9,30): error CS0234: The type or namespace name 'AssemblyTitleAttributeAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(9,30): error CS0234: The type or namespace name 'AssemblyTitleAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(10,30): error CS0234: The type or namespace name 'AssemblyVersionAttributeAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(10,30): error CS0234: The type or namespace name 'AssemblyVersionAttribute' does not exist in the namespace 'System.Reflection' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(11,29): error CS0234: The type or namespace name 'NeutralResourcesLanguageAttributeAttribute' does not exist in the namespace 'System.Resources' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(11,29): error CS0234: The type or namespace name 'NeutralResourcesLanguageAttribute' does not exist in the namespace 'System.Resources' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         Properties\AssemblyInfo.cs(8,34): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         Properties\AssemblyInfo.cs(9,28): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         Properties\AssemblyInfo.cs(10,28): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         Properties\AssemblyInfo.cs(11,30): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         Properties\AssemblyInfo.cs(16,23): error CS0518: Predefined type 'System.Boolean' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         C:\Users\oren\AppData\Local\Temp\.NETPortable,Version=v4.6,Profile=Profile32.AssemblyAttributes.cs(4,71): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         C:\Users\oren\AppData\Local\Temp\.NETPortable,Version=v4.6,Profile=Profile32.AssemblyAttributes.cs(4,118): error CS0246: The type or namespace name 'FrameworkDisplayName' could not be found (are you missing a using directive or an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         C:\Users\oren\AppData\Local\Temp\.NETPortable,Version=v4.6,Profile=Profile32.AssemblyAttributes.cs(4,141): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(6,59): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(7,59): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(8,68): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(9,53): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(10,55): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         obj\Release\portable46-win81+wpa81\MegaLib.AssemblyInfo.cs(11,63): error CS0518: Predefined type 'System.String' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         Class1.cs(3,14): error CS0234: The type or namespace name 'Linq' does not exist in the namespace 'System' (are you missing an assembly reference?) [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         Class1.cs(8,18): error CS0518: Predefined type 'System.Object' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]
         Class1.cs(10,9): error CS0518: Predefined type 'System.Void' is not defined or imported [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]

    0 Warning(s)
    41 Error(s)

Time Elapsed 00:00:04.02
C:\dev\MegaLib\Preview3-migrate-bug [master ≡ +0 ~2 -0 !]>

@TheRealPiotrP
Copy link
Contributor

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.

@clairernovotny
Copy link
Member Author

It works in the preview2 tooling and I would expect it to work by GA from a cross-compiling tooling perspective.

@clairernovotny
Copy link
Member Author

clairernovotny commented Dec 4, 2016

I see part of the issue...
When working with the profiles, the build tooling isn't auto-referencing all libraries in the profile like before. It needs to continue to do that. Instead, I had to add to get past the Profile32 issue and on to the next thing -- not recognizing UAP10.0 like it used to:

  <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) ->
(_CheckForUnsupportedTargetFramework target) ->
C:\Users\oren.nuget\packages\microsoft.net.sdk\1.0.0-alpha-20161104-2\build\Microsoft.NET.TargetFrameworkInference.targets(76,5): error : Cannot infer TargetFrameworkIdentifier and/or TargetFrameworkVersion from TargetFramework='uap10.0'. See comment in C:\Users\oren.nuget\packages\microsoft.net.sdk\1.0.0-alpha-20161104-2\build\Microsoft.NET.TargetFrameworkInference.targets showing how to specify them explicitly. [C:\dev\MegaLib\Preview3-migrate-bug\MegaLib.csproj]

@clairernovotny
Copy link
Member Author

This is related to the following issues:

#477
#491
#492

I believe that addressing those three will fix this one as this project/migration hits all three of those issues.

@livarcocc
Copy link
Contributor

All the remaining work here is in the SDK. Closing this issue.

@msftgits msftgits transferred this issue from dotnet/cli Jan 31, 2020
@msftgits msftgits added this to the 1.0.0-rtm milestone Jan 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants