VS 2012由于撇号无法生成依赖图

时间:2014-03-20 18:25:10

标签: visual-studio visual-studio-2012

我已经继承了一个现有的项目,我试图生成一些有用的文档 - 此时,依赖图。它是一个Visual Studio项目,所以我想利用内置的架构和分析工具。

不幸的是,图形生成器不起作用。显然它在后端使用SQLServer Express。我有幸成为爱尔兰人,我的名字中有一个撇号。 Visual Studio团队从未发生过名称内的标点符号,因此依赖数据库创建因解析错误而失败 - 它将撇号视为字符串分隔符。

我不太确定为什么我的真实姓名对创建此图表很重要。我也不确定如何为此目的改变它。我当然不想重命名自己。有没有解决这个问题?错误屏幕提到"打开XML编辑器以修复这些错误",但这只是呈现一个无人居住的XML结构。

确切的错误(名称已编辑):

CREATE / ALTER DATABASE语句中的选项(NAME AFTER APOSTROPHE)的使用无效。

调用堆栈:    在System.Data.SqlClient.SqlConnection.OnError(SqlException异常,Boolean breakConnection,Action`1 wrapCloseInAction)

at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception,Boolean breakConnection,Action 1 wrapCloseInAction) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource 1 completion,String methodName,Boolean sendToPipe,Int32 timeout,Boolean asyncWrite)    在System.Data.SqlClient.SqlCommand.ExecuteNonQuery()    在Microsoft.Repository.SqlInteraction.InternalExecuteBatch(SqlConnection连接,SqlTransaction事务,字符串脚本,Int32 timeoutInSec)    在Microsoft.Repository.SqlInteraction。<> c_ DisplayClass16.b _15()    在Microsoft.Repository.SqlInteraction.ExecuteRepositoryAction(Action action)    在Microsoft.Repository.SqlInteraction.ExecuteBatch(SqlConnection连接,SqlTransaction事务,字符串脚本,Int32 timeoutInSec)    在Microsoft.Repository.DatabaseCreator.CreateEmptyDatabase(SqlConnection masterConnection)    在Microsoft.Repository.RenamingDatabaseCreator.CreateEmptyDatabase(SqlConnection masterConnection)    在Microsoft.Repository.DatabaseCreator.b_ 0(SqlConnection masterConn)    在Microsoft.Repository.SqlInteraction。<> c _DisplayClass9.b__7()    在Microsoft.Repository.SqlInteraction.ExecuteRepositoryAction(Action action)    在Microsoft.Repository.SqlInteraction.UsingConnection(SqlConnection sqlConnection,Action 1 act) at Microsoft.Repository.SqlInteraction.UsingMasterConnection(String connectionString, Action 1 act) at Microsoft.Repository.DatabaseCreator.Microsoft.Repository.IDatabaseCreator.CreateDatabase(String connectionString)    在Microsoft.VisualStudio.Progression.CacheUtilities.InternalCreateCache(String cacheConnectionString,String localCacheDirectory,ActionContext context)    在Microsoft.VisualStudio.Progression.CacheUtilities.EnsureCacheExists(String cacheConnectionString,String localCacheDirectory,ActionContext context)    在Microsoft.VisualStudio.ArchitectureTools.ProgressiveReveal.CheckSizeThenPopulateCommand.Execute(ActionContext context,IGraphStatus statusReporter,IProgressionCacheSettings设置)    在Microsoft.VisualStudio.ArchitectureTools.ProgressiveReveal.ProgressiveRevealProvider.PopulateCodeRepositoryHandler(ActionContext context)    在Microsoft.VisualStudio.Progression.ActionManager.CallNormalActions(Action action,ActionContext actionContext)    在Microsoft.VisualStudio.Progression.ActionManager.InternalExecuteAction(Object context)

0 个答案:

没有答案