Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

MSBuild task referenced without full path in targets file is not found #200

Open
@dgrunwald

Description

@dgrunwald

SD-1812, originally created on 1/25/2011 20:49:48 by Matt Ward

Steps to reproduce:

  1. Use attached project file.
  2. Open up in SharpDevelop 4.
  3. Change build configuration so it builds the Analyze configuration.
  4. Build.

See an error:

D:\temp\z4\Tools\StyleCop\Microsoft.StyleCop.targets(86,5) : Error
MSB4062: The "StyleCopTask" task could not be loaded from the assembly
\Microsoft.StyleCop.dll. Could not load file or assembly
'file:///D:\Microsoft.StyleCop.dll' or one of its dependencies. The
system cannot find the file specified. Confirm that the
declaration is correct, and that the assembly and all its dependencies
are available.

If you build the solution in SharpDevelop 3.0 it works. If you build
the solution from the command line using msbuild for .NET 4.0 the task
is located correctly (run with /v:diag) but you get a different error.

The problem seems to be the in the
Microsoft.StyleCop.targets file since it references the task without a
full path:

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