Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.4k views
in Technique[技术] by (71.8m points)

azure devops - Where are the publish settings stored in Visual Studio for Office AddIns

We have to perform bulk renaming operation of our code from time to time, and recently when we were renaming our project from C_A_C_WordAddInRibbon to U_A_C_WordAddInRibbon, the project was compiled successfully and there were no errors but when we launched the Word AddIn in debug mode on the Word splash screen we still saw C_A_C instead of U_A_C, after much searching we figured out in the Project properties|Publish|Options both Description and Office Settings still had the old C_A_C name. enter image description here

So my question is where is this file or setting saved so we can perform a consistent renaming operation in the future rather than an inconsistent one.

question from:https://stackoverflow.com/questions/65841383/where-are-the-publish-settings-stored-in-visual-studio-for-office-addins

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Above publish options settings are saved in the .csproj file of your Office AddIns. You can edit the .csproj file by following below steps

In the Visual Studio, Navigate to your AddIns project in Solution explore-->Right click-->Select unload project

enter image description here

After your project is unloaded. Right click on your project-->Select edit project file

enter image description here

Then rename the <ProductName> element under <PropertyGroup>

At last. Click File on the top left corner-->Save All (Important)-->Right click on your project and Reload project

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...