Differences in .Resources files between Visual Studio 2005 beta1 a

G

Guest

Our build system builds against the 1.1 .Net framework, but uses msbuild
from Visual studio 2005.
This allowed us to create ant style .csproj build scripts, which we couldn't
do with Visual Studio 2003.
All of this worked fine with Visual Studio 2005 beta1.
When we were forced to upgrade, with no notice, our build system no longer
worked.
In beta 1 there was a tool called cfresgen.exe which has been removed and
replaced with resgen.exe in beta2.
The cfresgen allowed us to compile our .resx resources files and convert
them to .resources files which could be used when building against the 1.1
framework.
The new resgen tool which has superceded this will again allow us to do this
compilation, however when the .resources files it generates are used within
the 1.1 framework they fail.

The exception is:

Message : System.Reflection.TargetInvocationException : Exception has been
thrown by the target of an invocation. ---->
System.NotSupportedException : This .resources file shouldn't be used with
this reader. Your resource reader type: System.Resources.ResourceReader,
mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Stack-Trace :
at System.Reflection.RuntimeConstructorInfo.InternalInvoke(BindingFlags
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean
isBinderDefault)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr,
Binder binder, Object[] parameters, CultureInfo culture)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder
binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr,
Binder binder, Object[] args, CultureInfo culture, Object[]
activationAttributes)
at System.Resources.ResourceManager.CreateResourceSet(Stream store)
at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo
culture, Boolean createIfNotExists, Boolean tryParents)
at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo
culture, Boolean createIfNotExists, Boolean tryParents)
at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo
culture, Boolean createIfNotExists, Boolean tryParents)
at System.Resources.ResourceManager.GetString(String name, CultureInfo
culture)
at System.Resources.ResourceManager.GetString(String name)
at Iona.Build.Utilities.DependencyParserTest.copyTemplate(String templateName)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top