如何将构建任务配置为在.net 4.5运行时下启动mono?最好是基于我的解决方案文件中的设置,而不是直接传递设置。对于当前的配置,xbuild是使用.net 4.0运行时启动的。
task :build => [:compile_this]
build :compile_this do |b|
b.file = 'MyProj.sln'
b.target = ['Clean','Rebuild']
b.prop :configuration ,'Debug'
end
test_runner :test => [:build] do |cmd|
cmd.command = '~/bin/xunit/xunit.console.exe'
cmd.files = ['Tests/bin/Tests.dll']
cmd.add_parameter = '/html results.html'
end我在Ubuntu13.10下运行Mono3.2.7 64位。
发布于 2014-09-10 03:13:42
我终于能坐下来想办法解决这一切。
将mono升级到3.8,删除目标和道具元素,并添加tools_version= '12.0',就可以正常工作了。(请注意,我不确定是否需要使用3.8才能使其发挥作用。
我的构建任务如下
build :compile_this do |b|
b.sln = 'MyProj.sln'
b.tools_version = '12.0'
endhttps://stackoverflow.com/questions/25670851
复制相似问题