1
我們正在使用devenv命令行在門控簽入生成過程中構建我們的解決方案。基本上,它是devenv abc.sln/build Debug。如何去除命令行構建解決方案中不必要的所有軟件包的devenv?
現在我認爲自己「devenv加載了大量不必要的包,這會降低速度,讓我以安全模式運行它」。
因此,我修改了命令行爲devenv abc.sln/build Debug/SafeMode。它的效果很好,只有一個項目無法加載。它是可移植的類庫。
請注意以下幾點:
D:\TFS\DFGatedCheckIn>devenv DataSvc.sln /upgrade
Microsoft Visual Studio 2013 Version 12.0.30723.0.
Copyright (C) Microsoft Corp. All rights reserved.
Information:
This project/solution does not require migration. It will open without modification.
D:\TFS\DFGatedCheckIn>devenv DataSvc.sln /upgrade /safemode
Microsoft Visual Studio 2013 Version 12.0.30723.0.
Copyright (C) Microsoft Corp. All rights reserved.
Some errors occurred during migration. For more information, see the migration report:
D:\TFS\DFGatedCheckIn\UpgradeLog48.htm
Information:
This project/solution does not require migration. It will open without modification.
D:\TFS\DFGatedCheckIn>
而且在創建升級日誌中發現的唯一的錯誤是:
Services\Platform\Resources\DfResources.csproj: The application which this project type is based on was not found. Please try this link for further information: http://go.microsoft.com/fwlink/?LinkID=299083&projecttype=786C830F-07A1-408B-BD7F-6EE04809D6DB
這一個也是唯一可移植類庫在我們的解決方案。所以,我猜想Visual Studio在安全模式下不會加載負責理解這些項目的包。
我仍然想盡量減少由Visual Studio加載的包的數量,但不以犧牲正確性爲代價。所以,我的問題是什麼纔是正確的做法呢?
特別是在我的情況下 - 我如何在安全模式下運行,再加上用於識別可移植類庫的包(順便說一句,我不知道哪一個)?