[Mono-list] ALINK: error A0000: Cannot embed resources on this runtime: try the Mono runtime instead.

Timotheus Pokorra timotheus.pokorra at solidcharity.com
Thu Jun 19 11:13:55 UTC 2014


Hello,

the error message originates in this part of the source code:
https://github.com/mono/mono/blob/master/mcs/tools/al/Al.cs#L674

It seems, that your xbuild on Windows is using the Microsoft .Net
runtime to run C:\PROGRA~2\MONO-3~1.3\lib\mono\4.5\al.exe

I just checked but I cannot find a parameter for xbuild to specify
which runtime to use for programs it calls.
Perhaps you can compile your project from MonoDevelop, where you can
specifiy the runtime? But that is just a guess.

Hopefully someone else on the list has a better idea...

Timotheus


On 19 June 2014 11:58, fulop78 <fulop78 at gmail.com> wrote:
> Hi,
> I'm trying to build a c# project under mono. What does the error in subject
> mean? How exactly do I "try the Mono runtime instead"? Any help will be much
> appreciated.
>
>
> trace from xbuild:
> C:\Workspaces\Tools\DacGenerator\DacGenerator-Trunk\DacGenerator\DacGenerator>xbuild
> dacgenerator.csproj
> XBuild Engine Version 4.0
> Mono, Version 3.4.0.0
> Copyright (C) 2005-2013 Various Mono authors
>
> Build started 19.6.2014 11:33:48.
> __________________________________________________
> Project
> "C:\Workspaces\Tools\DacGenerator\DacGenerator-Trunk\DacGenerator\DacGenerator\dacgenerator.csproj"
> (default target(s)):
>         Target PrepareForBuild:
>                 Configuration: Debug Platform: AnyCPU
>         Target GenerateSatelliteAssemblies:
>                 Tool C:\PROGRA~2\MONO-3~1.3\lib\mono\4.5\al.exe execution
> started with arguments:  /culture:sk /delaysign-
> /embed:obj\Debug\Gratex.Controls.FavoritesMenuNS.AddFavorite.sk.resources
> /embed:obj\Debug\Gratex.Controls.FavoritesMenuNS.CreateNewFolder.sk.resources
> /embed:obj\Debug\DACGenerator.FavoritesMenu.Localizable.Text.sk.resources
> /embed:obj\Debug\Gratex.Controls.FavoritesMenuNS.OrganizeFavorites.sk.resources
> /out:obj\Debug\sk\DACGenerator.resources.dll
> ALINK: error A0000: Cannot embed resources on this runtime: try the Mono
> runtime instead.
>         Task "AL" execution -- FAILED
>         Done building target "GenerateSatelliteAssemblies" in project
> "C:\Workspaces\Tools\DacGenerator\DacGenerator-Trunk\DacGenerator\DacGenerator\dacgenerator.csproj".--
> FAILED
> Done building project
> "C:\Workspaces\Tools\DacGenerator\DacGenerator-Trunk\DacGenerator\DacGenerator\dacgenerator.csproj".--
> FAILED
>
> Build FAILED.
> Errors:
>
> C:\Workspaces\Tools\DacGenerator\DacGenerator-Trunk\DacGenerator\DacGenerator\dacgenerator.csproj
> (default targets) ->
> C:\PROGRA~2\MONO-3~1.3\lib\mono\4.5\Microsoft.Common.targets
> (GenerateSatelliteAssemblies target) ->
>
>         ALINK: error A0000: Cannot embed resources on this runtime: try the
> Mono runtime instead.
>
>          0 Warning(s)
>          1 Error(s)
>
> Time Elapsed 00:00:00.6800680
>
>
>
> --
> View this message in context: http://mono.1490590.n4.nabble.com/ALINK-error-A0000-Cannot-embed-resources-on-this-runtime-try-the-Mono-runtime-instead-tp4663150.html
> Sent from the Mono - General mailing list archive at Nabble.com.
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list


More information about the Mono-list mailing list