Comments (2)
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.
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:"${environment::get-folder-path('ProgramFiles')}\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0""/>
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)
- About long path support HOT 2
- nant.sourceforge.net has been down for a while HOT 4
- makefile usage reasons HOT 1
- Mail Task doesn't play nicely with TryCatch Task HOT 2
- Licensing question HOT 3
- OnBuildSuccess vs. OnSuccessfulBuild in csproj files HOT 1
- <script> failed on mono 4.2 HOT 8
- System.OutOfMemoryException starting yesterday HOT 1
- It seems like nant does not support ".net framework 4.6.1" now. HOT 3
- Package new binary release on sourceforge to get bug fixes HOT 4
- Road Plan for nant project HOT 2
- Build failure on current master branch HOT 1
- Question: Any plan for .NET Core support?
- How to embed an application manifest using CSC task HOT 1
- exec program="java" fails if JDK7 & JDK8 are installed
- NAnt does not find .NET SDK 4.8 when compiling for .NET4.0
- <get /> fails on certain websites
- nant does not support ".net framework 4.8"
- Null pointer due to absent registry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows on Windows 10 64bit HOT 6
- NAnt2 fork
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nant.