根据我的经验,Slowcheetah 不适用于 Azure Webjobs。
我只是想确认是否是这种情况(或不是)。
干杯
最佳答案
我已经使用了本教程,效果很好:SlowCheetah VS 2015 。 请记住,网络作业只是一个控制台应用程序(以及更多...)
- 添加 slowcheetah nuget package到您的网络作业项目。
- 将 app.config 转换添加到您的项目,例如 app.Debug.config 和 app.Release.config
编辑您的 *.csproj 文件并添加以下行(取决于您想要的转换的名称和数量:
<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.重新加载您的项目,它应该可以工作。
关于azure - Slowcheetah 为 Azure Webjobs 进行转型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29598097/