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)

RE: Differences in .Resources files between Visual Studio 2005 beta1 a by v-phuang

v-phuang
Thu Jul 21 22:02:47 CDT 2005

Hi

So far Whidbey issue is not officially supported.
For Whidbey related issue, I think you may try to post in vs2005 forum.
http://lab.msdn.microsoft.com/vs2005/community/

Thanks for your understanding!

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.