We are using ODP.NET and we need to refer to the Oracle.DataAccess.dll in our project.json.
Unfortunately, not all developers on our team have ODP.NET installed to the same path, but we do have an environment variable which tells the location of the installation. In MSBuild we can use environment variables as part of the path, can this be done with dnx/dotnetcli?
So we have this:
"frameworks": {
"dnx451": {
"dependencies": {
"xunit.runner.visualstudio": "2.2.0-beta1-build1144",
"xunit.runner.console": "2.1.0-rc1-build3168"
},
"bin": {
"assembly": "c:\\oracle64\\product\\11.2.0\\client_1\\odp.net\\bin\\4\\Oracle.DataAccess.dll"
}
}
},
But can we do something like the following:
"frameworks": {
"dnx451": {
"dependencies": {
"xunit.runner.visualstudio": "2.2.0-beta1-build1144",
"xunit.runner.console": "2.1.0-rc1-build3168"
},
"bin": {
"assembly": "${ODP_NET_PATH}"
}
}
},