該項目包含c#和javascript源代碼。我使用visual studio 2015(3)進行開發。由於安裝TypeScipt 2.0.3,我無法在編輯器中打開.js源文件。彈出的消息是: 嘗試加載頁面時發生錯誤。Visual Studio 2015在TypeScript安裝後打開java腳本文件失敗
出口沒有找到相匹配的約束: ContractName Microsoft.CodeAnalysis.Editor.TypeScript.ScriptContexts.ITypeScriptProjectProvider RequiredTypeIdentity Microsoft.CodeAnalysis.Editor.TypeScript.ScriptContexts.ITypeScriptProjectProvider
它是也出現在解決方案屬性下的TypeScript Build選項卡中。
有沒有人遇到同樣的問題或有任何想法如何解決這個問題?我想在Visual Studio中編輯.js文件。
正確答案。刪除ComponentModelCache有幫助。另一個線程,這個問題已被澄清:https://stackoverflow.com/questions/17596543/error-message-no-exports-were-found-that-match-the-constraint-contract-name –