Giter Club home page Giter Club logo

Comments (3)

mausch avatar mausch commented on May 29, 2024

I don't think this is enough... How do you know from the FAKE script which dependencies are 4.0 and need to be replaced by equivalent 3.5 ones? IMHO the only way to do this is "manually" (or at least this part), i.e. the developer has to mark the necessary references as 4.0-only and also add the replacements to be used for the 3.5 build (or Silverlight build, or Mono build, etc).
The best solution for multitargeting I've seen is Castle's (see Windsor.csproj), it just uses multiple MSBuild configurations, each with its own output path and constants defined for ifdeffing, and references with conditions to exclude/include them. This also has the benefit that you can easily choose the configuration (therefore target) right from Visual Studio. So in this case, all the pieces are already there... no need for any specific FAKE task, just set the desired Configuration, or if you want iterate through a list of available Configurations.

from fake.

panesofglass avatar panesofglass commented on May 29, 2024

Mauricio's suggestion works for me. I could use a course on setting up configurations. :)

from fake.

mausch avatar mausch commented on May 29, 2024

Just reread this and on second thought, it should be possible to iterate through the project references, fetch the framework version from their assembly metadata (or project target in the case of a project reference) and XML-poke as you said, using some sort of convention for the location of the equivalent assemblies (e.g. NuGet's convention of NET20, NET35, NET40, etc).
Though there are probably some pitfalls with this... and I still think handling this at the msbuild level is better.

from fake.

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.