- Use vs2017-win2019 agent in devops build pipeline due to sharepoint.targets error
- ASP.Net website
- Set output directory to 'bin\' rather than 'bin\debug'
- Open project property pages (right click -> properties)
- Open Build tab
- Set the 'Output Path' property to 'bin\'
- https://docs.microsoft.com/en-us/visualstudio/ide/how-to-change-the-build-output-directory?view=vs-2019
- Build Pipeline
- Add three publishing profiles with following settings
Variable |
DEV |
Publish Method |
Web Deploy |
Server |
<Dev IIS Server name> |
Site Name |
|
User Name |
<user name> |
Destination Url |
|
Configuration |
Debug |
Db connection string |
#{connectionstring1}# |
|
- Remove Microsoft.SharePoint.Client and Microsoft.SharePoint.Client.Runtime dlls and add packages SharePoint.Client and SharePoint.Client.Runtime from nuget
- Add Microsoft.SharePoint.Client and Microsoft.SharePoint.Client.Runtime dlls to sourcecontrol
- Use nuget.config in restore nuget packages task
- Add Microsoft.IndetityModel.dll and Microsoft.IndetityModel.Extensions.dll to source control
- Replace AppForSharePoint16WebToolkit v4.0 with v.3.1.5
- Add publishing profiles to source control
- Sharepoint addin project
- Add a list to make sure app web is provisioned
No comments:
Post a Comment