Skip to content
This repository was archived by the owner on Jan 8, 2019. It is now read-only.
This repository was archived by the owner on Jan 8, 2019. It is now read-only.

Warnings when building multi-target projects #85

@neoeinstein

Description

@neoeinstein
<Project Sdk="FSharp.NET.Sdk;Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFrameworks>net40;netstandard1.6</TargetFrameworks>
  </PropertyGroup>
  <ItemGroup>
    <Compile Include="Lib.fs" />
  </ItemGroup>
  <ItemGroup>
    <PackageReference Include="FSharp.NET.Sdk" Version="1.*" PrivateAssets="All" />
    <PackageReference Include="FSharp.Core" Version="4.*" />
  </ItemGroup>
</Project>

with a minimal library:

module Lib = let f x = f x

Gives the following warning:

C:\Program Files\dotnet\sdk\1.0.0-rc4-004842\Microsoft.Common.CrossTargeting.targets(116,3): warning MSB4011: "C:\Program Files\dotnet\sdk\1.0.0-rc4-004842\15.0\Microsoft.Common.targets\ImportAfter\Microsoft.NuGet.ImportAfter.targets" cannot be imported again. It was already imported at "C:\Program Files\dotnet\sdk\1.0.0-rc4-004842\Microsoft.Common.CurrentVersion.targets (5733,3)". This is most likely a build authoring error. This subsequent import will be ignored. [C:\dev\github.com\org\proj\src\Proj\Proj.fsproj]

C:\Program Files\dotnet\sdk\1.0.0-rc4-004842\Microsoft.Common.CrossTargeting.targets(145,3): warning MSB4011: "C:\dev\github.com\org\proj\src\Proj\obj\Proj.fsproj.nuget.g.targets" cannot be imported again. It was already imported at "C:\Program Files\dotnet\sdk\1.0.0-rc4-004842\Microsoft.Common.targets (127,3)". This is most likely a build authoring error. This subsequent import will be ignored. [C:\dev\github.com\org\proj\src\Proj\Proj.fsproj]

This is non-blocking, and only produces noise during builds. I am using SDK 1.0.0-rc4-004842.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions