Can Orchard 1.8.x be installed on a build server that doesn't have Visual Studio installed?

I also asked this question on the Orchard forum, but there is no joy there yet. So this is it again ...

https://orchard.codeplex.com/discussions/569444 Please read a few more details.

IF the .NET 4 / 4.5 SDK comes with a developer command line (like previous SDKs) then I wouldn't ask this question.

But since Orchard builds with .NET 4.5, I am getting build errors using the old SDK. It seems like my only option is to install Visual Studio Express on the build server.

I do this when we speak, so the question is purely academic at the moment, but I'm still interested.

CHANGE IS NOT YET A JOY. Even after installing VS 2013 Express Web, the vcvarsall.bat that normally sets up the build environment is still missing. So this is no longer a matter of curiosity. Express version also fails to build my build environment. Help.

Set

+3


source to share


1 answer


Here's my answer ... copied and pasted from the forum.

This is a late answer. The bottom line is that I ended up getting our build server to build the garden projects. I'm not sure if this is a complete answer or not, as I should have answered once it was done. But I'm pretty sure it will work.

One more note ... It is possible that not all of these steps are necessary. I've tried a lot of different things and maybe in the end some of the steps are unnecessary. This may also reflect an issue on our build server ... especially the fact that I had to manually add entries to the registry.

But there are no details here.

Install the .NET Framework SDK for Windows 7.1. http://www.microsoft.com/en-us/download/details.aspx?id=8279

Install .NET 4.5 Full http://www.microsoft.com/en-us/download/details.aspx?id=30653

Installing Visual Studio 2013 Express for the Web http://www.visualstudio.com/en-us/products/visual-studio-express-vs.aspx

Install Visual Studio 2013 Build Tools http://www.visualstudio.com/en-us/products/visual-studio-express-vs.aspx

Finally, even after that ... it didn't work until I added the following registry keys. I would add a .reg file, but I can't see how. Save the lines between the lines in the fixBuild.reg file. Then double click ...


Windows Registry Editor version 5.00

[HKEY_LOCAL_MACHINE \ SOFTWARE \ Wow6432Node \ Microsoft \ VisualStudio \ SxS \ VC7]
"FrameworkDir32" = "C: \ Windows \ Microsoft.NET \ Framework \"
"FrameworkDir64" = "C: \ Windows \ Microsoft.NET \ Framework64"
"11.0 "=" C: \ Program Files (x86) \ Microsoft Visual Studio 11.0 \ VC \ "
" FrameworkVer32 "=" v4.0.30319 "
" FrameworkVer64 "=" v4.0.30319 "
" 12.0 "=" C: \ Program Files (x86 ) \ Microsoft Visual Studio 12.0 \ VC \ "




Finally, to do the build, I created a batch file that does the build.
Save the lines between the lines in the doBuild.cmd file. Make sure to put this in the root of your original download ... then double click to build ...


call "C: \ Program Files (x86) \ Microsoft Visual Studio 12.0 \ Common7 \ Tools \ VsDevCmd.bat"
msbuild / t: FastBuild Orchard.proj
The first line prepares your environment. The second will build the project using the FastBuild target in the Orchard.proj file. You can read this file if you want to try other build targets.

******* IMAGE
I forgot to mention one thing. And what you need to do to get this to work is that you need to edit some CSPROJ files because the command line build fails with errors like this ...

\ Orchard \ src \ Orchard.Web \ Modules \ CKEditor \ CKEditor.csproj (337.6): error: element name "None" for include "Placement.info" must be "Content". \ Orchard \ src \ Orchard.Web \ Modules \ Orchard.Tokens \ Tests \ Orchard.Tokens.Tests.csproj (82,6): error: item name "None" for include "app.config" sh \ Orchard \ src \ Orchard.Web \ Modules \ TinyMceDeluxe \ TinyMceDeluxe.csproj (377.6): error: item name "None" for include "app.config" must be "Cont \ Orchard \ src \ Orchard.Web \ Modules \ Upgrade \ Upgrade. csproj (156.6): error: element name "None" for include "app.config" must be "Content". [C: \ Us \ Orchard \ src \ Orchard.Web \ Themes \ Themes.csproj (280.6 ): error: element name "None" for include "Upward \ Views \ Content-Story.Detail.cshtml"must

The fix is ​​to be clear about what the error indicates. Open csproj files and search / replace "

Additionally, some of the projects reference app.config files that are not in the source. You must also remove these links. I usually just delete the contents of a node entirely or completely.

Set

+3


source







All Articles