0
我試圖在Visual Studio 2012採用亞音速3.0.0.4 T4模板,並嘗試運行自定義工具時,我得到一個錯誤:使用亞音速與Visual Studio 2012
Running transformation: System.ArgumentException: URI formats are not supported.
at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength)
at System.IO.Path.GetFullPathInternal(String path)
at System.IO.FileInfo.Init(String fileName, Boolean checkHost)
at System.IO.FileInfo..ctor(String fileName)
at Microsoft.VisualStudio.TextTemplatingDEA67E4EB0C1122C647D57B24990E6ADC926293FAA416AB931D00586F4B18B19835EBCF363314E3900B217C8CCCCBA2FE49FB073A2A661FD3E6B140615356056.GeneratedTextTransformation.GetProjectPath()
at Microsoft.VisualStudio.TextTemplatingDEA67E4EB0C1122C647D57B24990E6ADC926293FAA416AB931D00586F4B18B19835EBCF363314E3900B217C8CCCCBA2FE49FB073A2A661FD3E6B140615356056.GeneratedTextTransformation.GetConfigPath()
at Microsoft.VisualStudio.TextTemplatingDEA67E4EB0C1122C647D57B24990E6ADC926293FAA416AB931D00586F4B18B19835EBCF363314E3900B217C8CCCCBA2FE49FB073A2A661FD3E6B140615356056.GeneratedTextTransformation.GetConnectionString(String connectionStringName)
at Microsoft.VisualStudio.TextTemplatingDEA67E4EB0C1122C647D57B24990E6ADC926293FAA416AB931D00586F4B18B19835EBCF363314E3900B217C8CCCCBA2FE49FB073A2A661FD3E6B140615356056.GeneratedTextTransformation.get_ConnectionString()
at Microsoft.VisualStudio.TextTemplatingDEA67E4EB0C1122C647D57B24990E6ADC926293FAA416AB931D00586F4B18B19835EBCF363314E3900B217C8CCCCBA2FE49FB073A2A661FD3E6B140615356056.GeneratedTextTransformation.GetReader(String sql)
at Microsoft.VisualStudio.TextTemplatingDEA67E4EB0C1122C647D57B24990E6ADC926293FAA416AB931D00586F4B18B19835EBCF363314E3900B217C8CCCCBA2FE49FB073A2A661FD3E6B140615356056.GeneratedTextTransformation.LoadTables()
at Microsoft.VisualStudio.TextTemplatingDEA67E4EB0C1122C647D57B24990E6ADC926293FAA416AB931D00586F4B18B19835EBCF363314E3900B217C8CCCCBA2FE49FB073A2A661FD3E6B140615356056.GeneratedTextTransformation.TransformText() C:\SourceControl\Web Projects\XXX\xxx\App_Code\DAL\Classes.tt 1 1 http://localhost/XXX/
通常我一直在用VS2010使用網絡應用程序並使用內置的Web服務器運行它們。這個項目託管在我本地的IIS實例上(不知道它是否有所作爲)。
任何幫助,將不勝感激。
喬