Replies: 1 comment 1 reply
-
Hi most of this is covered in #12 and is one of the main limitations. The basic upshot is that you can publish from the command line or CI exactly as you could previously, but the IDE experience doesn't behave well. msbuild /t:Publish /p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingeFile=true /p:PackageLocation="MyPublishDir" or msbuild "path\to\your\solution.sln" /t:rebuild ^
/p:Configuration=Release ^
/p:DeployOnBuild=True ^
/p:DeployDefaultTarget=WebPublish ^
/p:WebPublishMethod=FileSystem ^
/p:DeleteExistingFiles=True ^
/p:publishUrl="path\to\your\output\folder" Looking at your discussion, all of the copytooutput type stuff should not be needed using this SDK. |
Beta Was this translation helpful? Give feedback.
-
Hello - I have a few different ASP.NET MVC projects that build on .NET Framework 4.8 I want to convert to the new SDK style csproj format. I was able to convert it over fine, but once I try and publish the project, all of the DLL files are not located in a /bin folder and nothing works. Instead they are just all dumped in one big folder with the other web assets (CSS, JS, etc) are at the same level.
Question: Will using this repo solve the deployment problems with net48 webapps? I tried to use the in my local solution but hit various problems;
-on publish i got this error: error ASPCONFIG: The CodeDom provider type "Microsoft.VisualC.CppCodeProvider, CppCodeProvider, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" could not be located.
-on publish it went into a endless loop with this error: ASPNETCOMPILER : warning CS1685: The predefined type 'System.ObsoleteAttribute' is defined in multiple assemblies in the global alias; using definition from 'c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.8\mscorlib.dll'
For what it's worth my only issue with the standard MS SDK on a .NET 48 webapp was the deployment issues as well. I had conversation with them here.
UPDATE: I did try the using the Web Application (Model-View-Controller) (CZEMacLeod)" template in Visual Studio and here are the deployment / publish issues I faced:
Thanks
Beta Was this translation helpful? Give feedback.
All reactions