Skip to content
This repository was archived by the owner on Nov 13, 2026. It is now read-only.

Fix build and VS warnings - #5223

Merged
jkotas merged 1 commit into
dotnet:masterfrom
jkotas:warnings
Jan 7, 2018
Merged

jkotas merged 1 commit into
dotnet:masterfrom
jkotas:warnings

Conversation

@jkotas

@jkotas jkotas commented Jan 7, 2018

Copy link
Copy Markdown
Member

Fixes #1194

{DD5B6BAA-D41A-4A6E-9E7D-83060F394B10}.Debug|x86.Build.0 = Debug|x86
{DD5B6BAA-D41A-4A6E-9E7D-83060F394B10}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DD5B6BAA-D41A-4A6E-9E7D-83060F394B10}.Release|Any CPU.Build.0 = Release|Any CPU
{DD5B6BAA-D41A-4A6E-9E7D-83060F394B10}.Release|arm.ActiveCfg = Debug|arm

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<Keyword>Win32Proj</Keyword>
<RootNamespace>reproNative</RootNamespace>
<WindowsTargetPlatformVersion>10.0.14393.0</WindowsTargetPlatformVersion>
<WindowsTargetPlatformVersion>10.0.16299.0</WindowsTargetPlatformVersion>

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Matches latest released VS2017 update

</ItemGroup>
<ItemGroup>
<Compile Condition="'$(Platform)'!='wasm'" Include="$(BaseIntermediateOutputPath)\Native\$(BinDirOSGroup).$(BinDirPlatform).$(BinDirConfiguration)\Runtime\Full\AsmOffsets.cs" />
<Compile Condition="'$(Platform)'=='wasm'" Include="$(BaseIntermediateOutputPath)\Native\$(BinDirOSGroup).$(BinDirPlatform).$(BinDirConfiguration)\Runtime\Portable\AsmOffsets.cs" />

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VS IDE does not like the duplicate name under condition.

@am11

am11 commented Jan 7, 2018

Copy link
Copy Markdown
Member

@jkotas, on a clean system (e.g. git clean -xdf and deletion of %USERPROFILE%\.nuget dir), when I tried building CoreRT from a fresh CMD instance, I ran into these errors:

c:\repos\corert\Tools\Microsoft.CSharp.Core.targets(106,11): error MSB4064: The "OverrideToolHost" parameter is not supported by the "Csc" task. Verify the parameter exists on the task, and it is a settable public instance property. [c:\repos\corert\src\ILCompiler.MetadataWriter\src\ILCompiler.MetadataWriter.csproj]
c:\repos\corert\Tools\Microsoft.CSharp.Core.targets(67,5): error MSB4063: The "Csc" task could not be initialized with its input parameters. [c:\repos\corert\src\ILCompiler.MetadataWriter\src\ILCompiler.MetadataWriter.csproj]
c:\repos\corert\Tools\Microsoft.CSharp.Core.targets(106,11): error MSB4064: The "OverrideToolHost" parameter is not supported by the "Csc" task. Verify the parameter exists on the task, and it is a settable public instance property. [c:\repos\corert\src\System.Private.CoreLib\src\System.Private.CoreLib.csproj]
c:\repos\corert\Tools\Microsoft.CSharp.Core.targets(67,5): error MSB4063: The "Csc" task could not be initialized with its input parameters. [c:\repos\corert\src\System.Private.CoreLib\src\System.Private.CoreLib.csproj]

If this PR fixes this issue, I can rebase my branch on top of yours. Otherwise sorry for the noise. :)

@jkotas

jkotas commented Jan 7, 2018

Copy link
Copy Markdown
Member Author

I think that these errors are caused by old version of msbuild or global msbuild targets that did not support OverrideToolHost property being used by CoreRT build. This PR is not fixing it.

To start diagnosing these, could you please share what is the VS version that you have installed, and msbuild version that the CoreRT build ends up using?

@jkotas
jkotas merged commit 904efae into dotnet:master Jan 7, 2018
@jkotas
jkotas deleted the warnings branch January 7, 2018 15:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants