2011-03-21 103 views
0

我有一個項目,其中有幾個子項目。一些項目包含dotnetnuke模塊。我已經將這個項目提交給SVN回購。但現在當我從SVN簽出版本時,我必須手動將模塊項目複製到dotnetnuke/desktopModules目錄。我試圖找到這樣一些簡短的方法:(有沒有更簡單的方式來使用dotnetnuke和SVN

我遵循這個問題的解決方案DotNetNuke and Subversion guidelines,但沒有運氣。我添加了nant.build文件到我的項目與dotnetnuke模塊。從命令行導航到並運行'惡性' 命令,但還是以下錯誤:(

未處理的異常: System.TypeInitializationException: 的類型初始FOř 'NAnt.Console.ConsoleStub' 拋出異常 ---> 。 System.Security.SecurityEx ception: 請求類型的許可'System.Security.Permissions.FileIOP ermission,mscorlib,Version = 4.0.0.0, Culture = neutral, PublicKeyToken = b77a5c5619 34e089' 失敗。在 System.Security.CodeAccessSecurityEngine.Check(對象 需求,StackCrawlMa RK & stackMark, 布爾isPermSet)在 System.Security.CodeAccessSecurityEngine.Check(的CodeAccessPermission 帽,S tackCrawlMark & stackMark)在 System.Security.CodeAccessPermission。點播() 在 System.AppDomainSetup.VerifyDir(字符串 目錄,布爾正常化)在 System.AppDomain.get_BaseDirectory()
在 log4net.Config.XmlConfiguratorAttribute.Configure(大會 sourceAssembly,ILoggerRepository targetRepository)在 log4net.Core.DefaultRepositorySelector.ConfigureRepository(大會 assemb LY,ILoggerRepository 庫)在 log4net.Core.DefaultRepositorySelector.CreateRepository(大會 復位器yAssembly,類型 repositoryType,字符串repositoryName, 布爾readAssemblyAttri butes)在 log4net.Core.DefaultRepositorySelector.CreateRepository(大會 復位器yAssembly,類型 repositoryType)在 log4net.Core.DefaultRepositorySelector.GetRepository(大會 repositoryAs sembly)在 log4net.Core.LoggerManager.GetLogger(大會 代表ositoryAssembly,字符串N AME)
在 log4net.LogManager.GetLogger(大會 repositoryAssembly,字符串名稱)處 NAnt.Console.ConsoleStub..cctor()
log4net.LogManager.GetLogger(類型 型) - - 內部異常堆棧跟蹤的結尾---在NAnt.Console.ConsoleStub.Main(字符串[] 參數)

回答

4

爲了解決您的第一點,如果你直接映射你的源代碼控制庫到您的網站的desktopmodules文件夾,您不需要在獲取最新內容後手動複製它。

對於第二點,您可能需要unblock the files being used by NAnt或查看using a different version of NAnt that does not have this issue。或者,您可以查看using MSBuild scripts instead of NAnt

+0

我可以確認0.91 alphas沒有'FileIOPermission'問題。 – bdukes 2011-03-21 13:56:57

相關問題