When I am trying to compile source code with
monodevelop 4.2.2 on Debian Jessie/sid
it gives me the following error:
Running generator 'ResXFileCodeGenerator' on file '/gitextensions/Plugins/GitFlow/Properties/Resource.resx'...
The 'ResXFileCodeGenerator' code generator crashed. Invalid ResX input.
and after that the build fails (see log at the end of this message).
When I look on the file
https://github.com/gitextensions/gitextensions/blob/master/Plugins/GitFlow/Properties/Resource.resx#L122the monodevelop highlights the semicolon in line 122 as the element which breaks the syntax of .resx file.
How to build this project properly?
Building: GitFlow (Debug)
Build started 1/28/2014 8:12:03 PM.
__________________________________________________
Project "/gitextensions/Plugins/GitFlow/GitFlow.csproj" (Build target(s)):
Target PrepareForBuild:
Configuration: Debug Platform: AnyCPU
Target ResolveAssemblyReferences:
/opt/mono/lib/mono/4.0/Microsoft.Common.targets: warning : Reference 'SmartFormat, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' not resolved
For searchpath /gitextensions/GitCommands/bin/Debug
For searchpath {CandidateAssemblyFiles}
Warning: {CandidateAssemblyFiles} not supported currently
For searchpath {HintPathFromItem}
HintPath attribute not found
For searchpath {TargetFrameworkDirectory}
Considered target framework dir /opt/mono/lib/mono/4.0, assembly named 'SmartFormat' not found.
For searchpath {PkgConfig}
Considered SmartFormat, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null, but could not find in any pkg-config files.
For searchpath {GAC}
Considered SmartFormat, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null, but could not find in the GAC.
For searchpath {RawFileName}
For searchpath bin/Debug/
Target CopyFilesMarkedCopyLocal:
Copying file from '/gitextensions/GitCommands/bin/Debug/GitCommands.dll' to '/gitextensions/Plugins/GitFlow/bin/Debug/GitCommands.dll'
Copying file from '/gitextensions/GitCommands/bin/Debug/GitCommands.dll.mdb' to '/gitextensions/Plugins/GitFlow/bin/Debug/GitCommands.dll.mdb'
Copying file from '/gitextensions/GitCommands/bin/Debug/ResourceManager.dll' to '/gitextensions/Plugins/GitFlow/bin/Debug/ResourceManager.dll'
Copying file from '/gitextensions/GitCommands/bin/Debug/ResourceManager.dll.mdb' to '/gitextensions/Plugins/GitFlow/bin/Debug/ResourceManager.dll.mdb'
Target GenerateResources:
Tool /opt/mono/bin/resgen2 execution started with arguments: /useSourcePath /compile "GitFlowForm.resx,obj/Debug/GitFlow.GitFlowForm.resources"
Tool /opt/mono/bin/resgen2 execution started with arguments: /useSourcePath /compile "Properties/Resource.resx,obj/Debug/GitFlow.Properties.Resource.resources"
Target GenerateSatelliteAssemblies:
No input files were specified for target GenerateSatelliteAssemblies, skipping.
Target CoreCompile:
Tool /opt/mono/bin/dmcs execution started with arguments: /noconfig /debug:full /debug+ /optimize- /out:obj/Debug/GitFlow.dll /resource:obj/Debug/GitFlow.GitFlowForm.resources /resource:obj/Debug/GitFlow.Properties.Resource.resources ../../CommonAssemblyInfo.cs GitFlowForm.cs GitFlowForm.Designer.cs GitFlowPlugin.cs Properties/AssemblyInfo.cs Properties/Resource.Designer.cs obj/Debug/.NETFramework,Version=v4.0.AssemblyAttribute.cs /target:library /define:"DEBUG;TRACE" /reference:/opt/mono/lib/mono/4.0/System.dll /reference:/opt/mono/lib/mono/4.0/System.Drawing.dll /reference:/opt/mono/lib/mono/4.0/System.Windows.Forms.dll /reference:/opt/mono/lib/mono/4.0/System.Core.dll /reference:/gitextensions/GitCommands/bin/Debug//GitCommands.dll /reference:/gitextensions/Plugins/GitUIPluginInterfaces/bin/Debug//GitUIPluginInterfaces.dll /warn:4
GitFlowForm.cs(9,15): error CS0234: The type or namespace name `Properties' does not exist in the namespace `GitFlow'. Are you missing an assembly reference?
Task "Csc" execution -- FAILED
Done building target "CoreCompile" in project "/gitextensions/Plugins/GitFlow/GitFlow.csproj".-- FAILED
Done building project "/gitextensions/Plugins/GitFlow/GitFlow.csproj".-- FAILED
Build FAILED.
Warnings:
/gitextensions/Plugins/GitFlow/GitFlow.csproj (Build) ->
/opt/mono/lib/mono/4.0/Microsoft.Common.targets (ResolveAssemblyReferences target) ->
/opt/mono/lib/mono/4.0/Microsoft.Common.targets: warning : Reference 'SmartFormat, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' not resolved