Code Monkey home page Code Monkey logo

Comments (4)

daveaglick avatar daveaglick commented on May 17, 2024

Looks like MSBuildToolsPath is getting incorrectly set - here's Sdk.targets:

  <PropertyGroup Condition="'$(LanguageTargets)' == ''">
    <LanguageTargets Condition="'$(MSBuildProjectExtension)' == '.csproj'">$(MSBuildToolsPath)\Microsoft.CSharp.targets</LanguageTargets>
    <LanguageTargets Condition="'$(MSBuildProjectExtension)' == '.vbproj'">$(MSBuildToolsPath)\Microsoft.VisualBasic.targets</LanguageTargets>
    <LanguageTargets Condition="'$(MSBuildProjectExtension)' == '.fsproj'">$(MSBuildThisFileDirectory)..\targets\Microsoft.NET.Sdk.FSharpTargetsShim.targets</LanguageTargets>

    <!-- If LanguageTargets isn't otherwise set, then just import the common targets.  This should allow the restore target to run,
         which could bring in NuGet packages that set the LanguageTargets to something else.  This means support for different
         languages could either be supplied via an SDK or via a NuGet package. -->
    <LanguageTargets Condition="'$(LanguageTargets)' == ''">$(MSBuildToolsPath)\Microsoft.Common.CurrentVersion.targets</LanguageTargets>
  </PropertyGroup>

Could be related to #29 given that Autofac multi-targets:

<TargetFrameworks>netstandard1.1;net45</TargetFrameworks>

But removing the net45 target doesn't improve the situation, so maybe not.

from buildalyzer.

daveaglick avatar daveaglick commented on May 17, 2024

After removing the net45 target to reduce the chance this is a multi-targeting problem, it looks like some of the MSBuild properties are getting reset:

2018-06-21_09h31_34

No idea why this is happening. It looks similar to what happens when you multi-target, except there's no multi-targeting going on.

from buildalyzer.

daveaglick avatar daveaglick commented on May 17, 2024

Okay, now it makes more sense - confirmed this first error at least is due to multi-targeting (#29), I had forgotten to change <TargetFrameworks> to <TargetFramework> when removing the second target. If I change all projects to single-target, Buildalyzer successfully builds the solution.

So I guess it's time to finally figure out how to handle multi-targeting.

from buildalyzer.

daveaglick avatar daveaglick commented on May 17, 2024

Resolved with the latest commit.

from buildalyzer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.