Skip to content

Warning from RAR with hint path has extra new line #3508

Description

@wli3

Given a hint path has extra new line. On full msbuild it will have warning:

C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3246: Resolved file has a bad image, no metada
ta, or is otherwise inaccessible. Illegal characters in path. [C:\work\temp\notNETFrameworkLibrary2\NETFrameworkLibrary.csproj]
  • Check if 16.2 has the same warning, the message might be different
  • core does not have that error, why?
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>Library</OutputType>
    <RestoreAdditionalProjectSources>$(RestoreAdditionalProjectSources);https://dotnet.myget.org/F/roslyn-tools/api/v3/index.json</RestoreAdditionalProjectSources>
    <TargetFramework>net472</TargetFramework>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0-preview.2" />
  </ItemGroup>
  <ItemGroup>
    <Reference Include="System.Net.Http">
      <HintPath>
      C:\work\sdk3\artifacts\tmp\Debug\SimpleNamesWi---6143883E\NETFrameworkLibrary\bin\Debug\net462\NETFrameworkLibrary.dll
      </HintPath>
    </Reference>
  </ItemGroup>
</Project>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions