本文介紹了xsd.exe 將類生成為單獨的文件?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!
問題描述
限時送ChatGPT賬號..
我有一組 .xsd 文件.使用 xsd.exe 生成類時,輸出文件大約有 17000 行長,包含成百上千個部分類.
I have a collection of .xsd files. When generating classes using xsd.exe, the output file is some ~17000 lines long with hundreds and hundreds of partial classes.
為了簡潔起見,xsd.exe 甚至 Visual Studio (2010) 是否可以將這些類拆分為單獨的文件?
In the interest of neatness, is it possible for either xsd.exe or even visual studio (2010) to split these classes, each into a separate file?
推薦答案
我不知道使用 xsd.exe 或普通 VS 的任何可能性,但使用 重新銳化.右鍵單擊文件 -> 重構(gòu) -> 將類型移動到匹配的文件中.
I don't know of any possibility using xsd.exe or plain VS, but it is possible using ReSharper. Right-click on the file -> Refactor -> Move types into matching files.
這篇關(guān)于xsd.exe 將類生成為單獨的文件?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!
【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!