wimh / SparkleShare

SparkleShare is a file sharing and collaboration tool inspired by Dropbox.
http://www.sparkleshare.org/
GNU General Public License v3.0
39 stars 6 forks source link

Allow project to be built independently of git #22

Closed acke closed 13 years ago

acke commented 13 years ago

Im behind a proxy at work. I cant clone, and I cant update submodules. I can download the source code as zips (sparkleshare, texttransform and smartirc4net).

I should be able to build the project with out getting:

PreBuildEvent: running texttransform.. fatal: Not a git repository (or any of the parent directories): .git Processing 'Defines.tt'... failed. (-1,-1): ERROR Error running transform: System.ArgumentNullException: Value cannot be null. Parameter name: input at System.Text.RegularExpressions.Regex.Match(String input) at Microsoft.VisualStudio.TextTemplating.GeneratedTextTransformation64af8179.TransformText() at Mono.TextTemplating.CompiledTemplate.Process() fatal: Not a git repository (or any of the parent directories): .git Processing 'GlobalAssemblyInfo.tt'... failed. (-1,-1): ERROR Error running transform: System.ArgumentNullException: Value cannot be null. Parameter name: input at System.Text.RegularExpressions.Regex.Match(String input) at Microsoft.VisualStudio.TextTemplating.GeneratedTextTransformation26b5f0bb.TransformText() at Mono.TextTemplating.CompiledTemplate.Process() c:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(895,9): error MSB3073: The command "C:\projects\SparkleShare\SparkleLib\windows\transform_tt.cmd" exited with code -1. Done Building Project "C:\projects\SparkleShare\SparkleLib\windows\SparkleLib.csproj" (Rebuild targ et(s)) -- FAILED.

Done Building Project "C:\projects\SparkleShare\SparkleShare\Windows\SparkleShare.sln" (Rebuild tar get(s)) -- FAILED.

Build FAILED.

wimh commented 13 years ago

I do all development at home behind a proxy, but because it is my own server, I have modified the proxy to allow all ssh and git access to github. But I guess you can't do that at work?

I think it would be better in this case is publish a zip file with all source code including dependencies. But I don't think it should be stored in the SparkleShare repo on github, because you would lose all advantages of submodules.

acke commented 13 years ago

I reproduced the actions by submodules:

Downloaded SmartIrc4net and TextTemplating archives, and put the content in the path specified for each, I also installed the other dependencies, dotNetFramework 4.0 and git. I downloaded download SmartIrc4net-0.4.0.bin.zip and Download CefSharp-0.3.1.7z and put the specified files as instructed.

submodule: path = SmartIrc4net url = git://git.qnetp.net/smartirc4net.git

path = tools/TextTemplating url = git://github.com/wimh/TextTemplating.git

I guess I am doing something wrong, as I get the issue described above?

wimh commented 13 years ago
fatal: Not a git repository (or any of the parent directories): .git

I think I understand. git is used to produce a version number. So if you don't have a git repo, the version cannot be determined, and the build fails.

You probably will be able to compile if you replace SparkleLib\windows\Defines.tt with the following text:

<#
    String VERSION="0.2.5";
    String ASM_VERSION="2.5";
    String ASM_FILE_VERSION="0.2.5.0";
#>
acke commented 13 years ago

Thanks

replacing the content of SparkleLib\windows\getversion.tt with the version info above did the trick. :)

//Knut