![](/img/trans.png)
[英]How can I set C#'s gcAllowVeryLargeObjects to true in VS2022 **without** using an App.config file?
我希望能夠以編程方式(或至少使用項目屬性)將gcAllowVeryLargeObjects設置為 true。 我知道我可以使用 App.config 文件,但這非常難看,因為它需要為主要可執行文件創建一個單獨的文件,然后需要將其與可執行文件一起傳遞。 我已經對Environment.GetEnvi ...