MSBuild Command script does not print font files correctly

I am using the msbuild script command line to publish a C # web project from the city command to a live server.

After struggling with IIS perimisions, etc. everything works well...

.... except that the font files are not copied to the correct directory (they get to the bin directory)

/t:rebuild /p:Configuration=Deploy /p:OutputPath=bin /p:DeployOnBuild=True /p:DeployTarget=MSDeployPublish /p:MsDeployServiceUrl=https://<server>/MsDeploy.axd /p:username=<username> /p:password=<password> /p:AllowUntrustedCertificate=True /p:DeployIisAppPath=<sitename> /p:MSDeployPublishMethod=WMSVC 

Any suggestions like wo, what can I do to get the files to go to the right directory?

+4
source share
1 answer

Make sure the fonts are turned on as “Content” by right-clicking on them in Visual Studio and selecting properties and changing “Build Action” to “Content”. Also make sure that the option "Copy to output directory" is set to "Do not copy"

+7
source

Source: https://habr.com/ru/post/1385103/


All Articles