Git Product home page Git Product logo

Comments (2)

dguder avatar dguder commented on July 22, 2024

From my point of view we should check if we can use this new reference assemblies folder in nant.exe.config. I expect that this would ease the configuration a little. And since we require a proper SDK installed on the machine I think we can expect that these folders are present.

from nant.

oskarb avatar oskarb commented on July 22, 2024

I have followed the advice on the SO topic I linked to, and it appears to do what I want. However, vbc needs to be handled differently:

For the Visual Basic compiler, the noconfig/nostdlib flags behave differently, and notably they will not prevent linking with some standard libraries. Luckily MS realized this problem and added the /sdkpath argument that should be used instead. With nant, I solved it by adding this inside the vbc task:

<arg line="/sdkpath:&quot;${environment::get-folder-path('ProgramFiles')}\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0&quot;"/>

I hope this can be resolved in a way so (at most) only changes to the project specific build file is necessary to enable this behavior. I.e. so that a nant user need not edit nant.exe.config. Perhaps using the reference assemblies should be the default for nant, which I think can be accomplished if the csc task would always apply the noconfig/nostdlib arguments, coupled with nant automatically adding references to mscorlib and some others (unless the build script itself has given the nostdlib argument to the csc task). Conversely, for vbc, nant should always apply the /sdkpath argument, unless the build script itself has given the sdkpath argument explicitly.

from nant.

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.