开发者

With an Azure project, when managing multiple service configurations, where are the current configuration choice saved

开发者 https://www.devze.com 2023-04-08 15:49 出处:网络
I\'m wondering about this because i\'d like to find a way to create a post-build event that is different whether I\'m trying to compile and run in the emulator or wheter I\'m compiling and publishing

I'm wondering about this because i'd like to find a way to create a post-build event that is different whether I'm trying to compile and run in the emulator or wheter I'm compiling and publishing to the cloud.

I don't know if there is an easier way, but I thought that If I could find开发者_开发问答 where the current setting (cloud or local) is saved I could branch my post-build event based on that

thx


It is in a variable TargetProfile so you should be able to do something similar to this (which is for after publish, but you get the idea):

<Target Name="AfterPublish">
    <ItemGroup Condition="'$(TargetProfile)' == 'Cloud'">
        <-- Do you thing here -->
    </ItemGroup>
</Target>
0

精彩评论

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

关注公众号