Red Gate forums :: View topic - Problem with periods in output filenames
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Packager 6
SQL Packager 6 forum

Problem with periods in output filenames

Search in SQL Packager 6 forum
Post new topic   Reply to topic
Jump to:  
Author Message
ladenedge



Joined: 11 Jan 2012
Posts: 2
Location: United States

PostPosted: Fri Jan 20, 2012 12:52 pm    Post subject: Problem with periods in output filenames Reply with quote

Hello. I'm having some trouble using SQL Packager with certain filenames in the /name: option - specifically those containing '.' and '-'. Here are some sample outcomes:

  • /name:upscript.R46535_to_5.0.441 (doesn't work)
  • /name:upscript.R46535_to_5_0_441 (works)
  • /name:upscript.R46535_to_5-0-441 (doesn't work)
  • /name:upscript-R46535_to_5_0_441 (doesn't work)
  • /name:upscript_R46535_to_5_0_441 (works)

Here's the error we're seeing:

Code:
Creating package...
Error: Error occurred whilst creating package 'upscript-R46535_to_5_0_441' in 'C:\TeamCity\buildAgent\work\33bce5bddfbed9dd\.': Compilation errors:
c:\Users\jay\AppData\Local\Temp\5\Red Gate\PEed66b3f9-04fe-4b57-8d6a-6ef3e95ff9e4.cs(6,27) : error CS1514: { expected
<repeated several times>

We're also using the /scriptsource and /makeexe options, fwiw. Is there a workaround for this issue, or am I possibly doing something wrong?
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6582

PostPosted: Mon Jan 23, 2012 12:23 pm    Post subject: Reply with quote

Sorry to say, you can't have dots in the package filename. The reason for this is Packager uses the filename in the packager template as the .NET type name for the code, and a .NET type can't have dots in it, as they are used as separators.

Sorry for the inconvenience.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group