本文介绍了Slowcheetah转换为Azure Webjobs的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
根据我的经验,Slowcheetah不适用于Azure Webjobs.
In my experience, Slowcheetah does not work with Azure Webjobs.
我只是想确认是否是这种情况.
I'm just looking for confirmation as to whether this is the case (or not).
欢呼
推荐答案
我已经使用了本教程,并且工作正常: SlowCheetah VS 2015 .请记住,Webjob只是一个控制台应用程序(还有更多...)
I've used this tutorial and it work fine : SlowCheetah VS 2015.Keep in mind that a webjob is just a console app (and more...)
- 将 slowcheetah nuget包添加到您的webjob项目中.
- 将app.config转换添加到您的项目中,例如app.Debug.config和app.Release.config
-
编辑* .csproj文件并添加以下行(取决于您想要的转换的名称和数量:
- Add the slowcheetah nuget package to your webjob project.
- Add the app.config transform to your project, for example app.Debug.config and app.Release.config
Edit your *.csproj file and add these lines (depending on the name and number of transformation you want :
<None Include="App.Release.config">
<DependentUpon>App.config</DependentUpon>
<TransformOnBuild>True</TransformOnBuild>
</None>
<None Include="App.Debug.config">
<DependentUpon>App.config</DependentUpon>
<TransformOnBuild>True</TransformOnBuild>
</None>
在这些行上方:
<None Include="App.config">
<TransformOnBuild>true</TransformOnBuild>
<SubType>Designer</SubType>
</None>
4.重新加载您的项目,它应该可以工作.
4. Reload your project and it should work.
这篇关于Slowcheetah转换为Azure Webjobs的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!