my web application uses a .css file. However when I use web deploy to publish the application to a web deploy package, the style sheet is omitted from the .zip file.
Related
I have developed a SPA (single-page-application) using react and Asp.net core and published to a folder as a self-contained App which will be deployed on the client desktop computer and work as desktop app.
I want to obfuscate the binaries and .dll files of published folder using neo-confuserex so that the user may not decompile the app to see startup.cs,context.cs and controller.cs classes.
the screenshot of the folder structure of the published folder is attached here.
here is second
as there is a long list of files so the last screenshot is here
my question is to identify the files which should be obfuscated and leave the extra remaining files which are necessary to run the app on desktop computer.
I am deploying to IIS using file system but i get error on deleting the current dll files on iis folder.
I read that the app needs to add the app_offline.html file to do this and that i need to add
<WebPublishMethod>FileSystem</WebPublishMethod>
<EnableMSDeployAppOffline>True</EnableMSDeployAppOffline>
somewhere when using filesystem. I can't find any information about this tho, i tried doing it on csproj file but no luck.
The <EnableMSDeployAppOffline> requires Web Deploy. If you're doing a filesystem publish, it's not going to have any effect. You need to either publish via Web Deploy, or manually stop the App Pool, move the files, and then start it up again.
When I publish my ASP .Net Core 1.1 MVC web app, I see the Publish folder contain a Web.config file, where I can set stdoutLogEnabled, etc. However, while developing I don't see this file at all - it looks like it's being generated when publishing... How can I therefore set the variables in this file without having to manually edit the file after each publish?
Web.config only makes sense if you host the app on Windows with IIS. You have to manually add it to the project to edit the file's contents or it will be auto-generated:
Documentation:
If you don't have a web.config file in the project when you publish with dotnet publish or with Visual Studio publish, the file is created for you in published output. If you have the file in your project, it's transformed with the correct processPath and arguments to configure the ASP.NET Core Module and moved to published output. The transformation doesn't touch IIS configuration settings that you've included in the file.
I have a website project in VS2013.
Now How can I publish this website to file system, and publish all .dll and .compiled file (as photo : all page code publish to .compiled file)
Thank for support.
I am working on a .NET CF 3.5 application. There are few external files\assemblies that the application is consuming. These files are not part of the project, therefore while debugging when I deploy the project, these external files are not deployed to the device.
Is there any way I can deploy these files with project without including them in the project?
You can't get Studio to deploy arbitrary files without telling it what files to deploy. The only way to tell Studio to deploy files is to either add the files to the project (as a Resource or a Content file) or by adding a reference to them (for .NET assemblies).