Skip to content

Build warning on reference to MSTest.TestFramework #6

Closed

Description

@codito

Issue type

Please specify the type of issue:

  • Specification
  • Code defect
  • Question

Steps to reproduce

  • Create a new project.json based test project that targets both net46 and netcoreapp1.0
  • dotnet build the project

It reproduces on running build.cmd in vstest repository.

Expected behavior

No warnings.

Actual behavior

A testproject.nuget.targets is created with following text:

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <Target Name="EmitMSBuildWarning" BeforeTargets="Build">
    <Warning Text="Packages containing MSBuild targets and props files cannot be fully installed in projects targeting multiple frameworks. The MSBuild targets and props files have been ignored." />
  </Target>
</Project>

Environment

  • dotnet --version
    1.0.0-preview3-003546

Activity

  1. AbhitejJohn commented on Sep 28, 2016

    @AbhitejJohn
    Contributor

    This is fixed with MSTest.TestFramework 1.0.4-preview.

  2. added a commit that references this issue on Mar 20, 2026
    a7c777a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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