nant-task

When running NUnit and specifying a category, can all uncategorized tests be included too?

荒凉一梦 提交于 2020-01-01 09:38:11
问题 We have several hundred test classes, with a few dozen of them marked with the following attributes: [TestFixture] [Explicit] [Category("IntegrationTests")] so they will only be run in our over-night automated build. The remaining TestFixtures don't have a Category specified (and are not marked Explicit either). Here is the NAnt task we are running to execute our tests: <nunit2> <test> ... <categories> <include name="IntegrationTests" /> </categories> ... </test> </nunit2> This, of course,

MSBuild 2010 - how to publish web app to a specific location (nant)?

ε祈祈猫儿з 提交于 2019-12-18 10:44:24
问题 I'm trying to get MSBuild 2010 to publish a web app to a specific location. I can get it to publish the deployment package to a particular path, but the deployment package then adds its own path that changes. For example: if I tell it to publish to C:\dev\build\Output\Debug then the actual web files end up at C:\dev\build\Output\Debug\Archive\Content\C_C\code\app\Source\ControllersViews\obj\Debug\Package\PackageTmp And the C_C part of the path changes (not sure how it chooses this part of the

How to make NAnt send an email using a real account

大憨熊 提交于 2019-12-12 17:09:51
问题 First of all, I have already seen this post: nant mail issues but the only answer is not satisfactory (i.e.: doesn't work for me). I am using NAnt to get latest version of source, upgrade version of the libraries and application, build the application, build the setups... all the usual things, I bet. I would like NAnt to send an email to some people confirming the conclusion of the build process; I've already checked the official (pretty ugly, IMHO) documentation for the task, but the example

MSBuild 2010 - how to publish web app to a specific location (nant)?

▼魔方 西西 提交于 2019-11-29 23:10:50
I'm trying to get MSBuild 2010 to publish a web app to a specific location. I can get it to publish the deployment package to a particular path, but the deployment package then adds its own path that changes. For example: if I tell it to publish to C:\dev\build\Output\Debug then the actual web files end up at C:\dev\build\Output\Debug\Archive\Content\C_C\code\app\Source\ControllersViews\obj\Debug\Package\PackageTmp And the C_C part of the path changes (not sure how it chooses this part of the path). This means I can't just script a copy from the publish location. I'm using this nant/msbuild