如何在visual studio中发布时重新配置身份验证 [英] How to re configure authentication when publishing in visual studio

查看:89
本文介绍了如何在visual studio中发布时重新配置身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

美好的一天,b
$
我在visual studio中创建了一个azure函数项目并将其发布在我的azure门户中,然后我为我的项目创建了一个git ,所以我复制了我的项目并将其粘贴到其他位置,在构建之后,我能够在本地运行它,但是当我想发布
我的项目时,我有未经授权的错误。也在发布页面,密码声明
需要注意

谢谢,

NicoTing

Thanks,
NicoTing

推荐答案

我不确定直接从IDE修复它的方法。

I'm unsure of a way to fix that directly from the IDE.

但基本上,如果你签入  < Project Folder> \Properties\PublishProfiles  你
应该看到一些  * .pubxml 和  * .pubxml.user  文件。

But basically, if you check in <Project Folder>\Properties\PublishProfiles you should see some *.pubxmland *.pubxml.user files.



  *。pubxml.user  文件是带有加密密码的
,但是你在VS中看不到。

The *.pubxml.user files are the ones with your encrypted password which you won't see in VS though.



我想最简单的解决方法是使用  其他名称创建一个新的个人资料,但  相同用户名/密码 配对并重命名  *。pubxml.user   file
以匹配原始发布配置文件。

I guess the simplest fix would be to create a new profile with a different name but the same username/password pair and rename the *.pubxml.user file to match that of your original publish profile.


这篇关于如何在visual studio中发布时重新配置身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆