开发者

Exclude file from compile configuration

开发者 https://www.devze.com 2023-01-08 19:24 出处:网络
I\'m trying to setup the configuration from my project.I currently use my project to connect to different ip addresses.I would like to include the ip address that is in a seperate file for different b

I'm trying to setup the configuration from my project. I currently use my project to connect to different ip addresses. I would like to include the ip address that is in a seperate file for different builds.

I have .cs files and when I select the properties, the property window appears however I do not have access to the开发者_StackOverflow中文版 property page to exclude the file from the particular deployment.

Any addvise?


If you click on the source file (.cs) in the Solution Explorer, there's an option called "Build Action" in the property window. Change that from "Compile" to "None", and the compiler won't include it when you build the project.

0

精彩评论

暂无评论...
验证码 换一张
取 消