2011-10-11 77 views

回答

0

更新但這也爲Visual Studio 2012的工作(重新啓動幾次,這似乎後),但你需要編輯位斷底,因爲我不知道編輯GUID是什麼在VS2012中,並簡單地使用UI來完成關聯。

有了正確的谷歌福,我發現這個其他SO:

Open a file in Visual Studio's CSS Source Editor

因此,這裏是我的完整pkgdef(也包括.cssx名爲.css編輯器相關的其他文件類型):

; .jsx files in Windows (C#) projects 
[$RootKey$\Projects\{fae04ec0-301f-11d3-bf4b-00c04f79efbc}\FileExtensions\.jsx] 
"DefaultBuildAction"="Content" 

; .jsx files in Windows (VB.NET) projects 
[$RootKey$\Projects\{f184b08f-c81c-45f6-a57f-5abd9991f28f}\FileExtensions\.jsx] 
"DefaultBuildAction"="Content" 

; .jsx files in Web Application projects 
[$RootKey$\Projects\{349c5851-65df-11da-9384-00065b846f21}\FileExtensions\.jsx] 
"DefaultBuildAction"="Content" 

; .jsx files in Web Site projects 
[$RootKey$\Projects\{e24c65dc-7377-472b-9aba-bc803b73c61a}\FileExtensions\.jsx] 
"DefaultBuildAction"="Content" 

; .cssx files in Windows (C#) projects 
[$RootKey$\Projects\{fae04ec0-301f-11d3-bf4b-00c04f79efbc}\FileExtensions\.cssx] 
"DefaultBuildAction"="Content" 

; .cssx files in Windows (VB.NET) projects 
[$RootKey$\Projects\{f184b08f-c81c-45f6-a57f-5abd9991f28f}\FileExtensions\.cssx] 
"DefaultBuildAction"="Content" 

; .cssx files in Web Application projects 
[$RootKey$\Projects\{349c5851-65df-11da-9384-00065b846f21}\FileExtensions\.cssx] 
"DefaultBuildAction"="Content" 

; .cssx files in Web Site projects 
[$RootKey$\Projects\{e24c65dc-7377-472b-9aba-bc803b73c61a}\FileExtensions\.cssx] 
"DefaultBuildAction"="Content" 

; JSX editor 
[$RootKey$\Languages\File Extensions\.jsx] 
@="{705DBF52-7DC2-4258-8CA3-49FFFEF81866}" 

[$RootKey$\Editors\{A52A054C-5228-4819-B568-E5B8040801B5}\Extensions] 
"jsx"=dword:00000028 

; CSSX editor 
[$RootKey$\Languages\File Extensions\.cssx] 
@="{A764E898-518D-11d2-9A89-00C04F79EFC3}" 

[$RootKey$\Editors\{A764E89A-518D-11d2-9A89-00C04F79EFC3}\Extensions] 
"cssx"=dword:00000028 
相關問題