Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
特定のビルド構成を使用している場合にのみ、ファイル (robots.txt) を公開したいと考えています。ビルド前のイベントでこれを処理する方法はありますか?
別のオプションは、VisualStudio ビルド イベント エディター内で $(ConfigurationName) マクロを使用することです。
if $(ConfigurationName)=="Production" copy robots.txt destinationpath