Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > Resource1.Designer.cs not craeted correctly?
 

Resource1.Designer.cs not craeted correctly?

Hi All,

I want to add aResource1.resx to my project.

When i build though the"Resource1.Designer.cs" file is not a child of the"Resource1.resx" file & the created project doesn't compile.

I end up with...
Resource1.Designer.cs
Resource1.resx

How can i get GAT to make the resources files correctly. i.e...

Resource1.resx
Resource1.Designer.cs (child ofResource1.resx)

Thanks,
Ken
ken
Kiwikencox  Monday, March 09, 2009 12:35 AM
Hi Ken,

I'm not sure if GAT is your solution. Do you want to create a Guidance Package, then create your own command, to create a Resource file programatically? or you just want to resolve the nested files issue?

jose.

Jose Escrich - weblogs.asp.net/jescrich
Jose Escrich  Monday, March 09, 2009 5:53 PM
I just wanted to add a static resource file to a project generated by GAT. Just nesting was theissue.

I figured it out...

inWindowsApplication.csproj...

<EmbeddedResource Include="Properties\Resources.resx">
<
Generator>ResXFileCodeGenerator</Generator>
<
LastGenOutput>Resources.Designer.cs</LastGenOutput>
<
SubType>Designer</SubType>
</
EmbeddedResource>
<
Compile Include="Properties\Resources.Designer.cs">
<
AutoGen>True</AutoGen>
<
DependentUpon>Resources.resx</DependentUpon>
</
Compile>

WindowsApplication.vstemplate...

<
ProjectItem>Properties\Resources.resx</ProjectItem>
<
ProjectItem ReplaceParameters="true" TargetFileName="Resources.Designer.cs">Properties\Resources.Designer.cs</ProjectItem>

cheers,
Ken


ken
Kiwikencox  Monday, March 09, 2009 8:10 PM

You can use google to search for other answers

Custom Search

More Threads

• Has anyone written a MSI bootstrapper for Guidance Automation Toolkit (GAT)?
• T4 templates editor?
• Installing GAX breaks Orcas C# new project creation
• Guidance Package Build
• Recipe framework error
• Register Package Hangs
• Can't Drag Controls onto CustomWizPages
• System.InvalidOperationException: Cannot find registration information for template
• Calling a recipe inside another recipe???
• How to add assemblies to solution-wide folder