I have added my existing website (a small home site for learning) running off my local network server (Server 2019) to Visual Studio 2019. When I publish the site from my dev machine to my local server the wpp.targets file is ignored and deploys items I have selected in the file to not be pushed. It is pushed via a shared folder from the server.
I'm new to VS or connecting it to a server but when I search for this topic I see a few things:
- The Projectname.wpp.targets folder should be in the root directory, which it is
- Most things I've read talk about the .csproj, .vbproj, etc files, which I do not have in my project
I'm at a loss on what the correct solution is as I'm fairly certain the file is correct, I'll post it below, I hope someone can point me in the right direction. And forgive me, I'm very new to this but I'm doing my best to learn, I'm not a professional in this regard.
<?xml version="1.0" encoding="utf-8" ?>
<Project ToolsVersion="4.0"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<ExcludeFromPackageFiles Include="Internal">
<FromTarget>MTGDeckSource.wpp.targets</FromTarget>
</ExcludeFromPackageFiles>
<ExcludeFromPackageFolders Include="Internal">
<FromTarget>img\card_images\*</FromTarget>
</ExcludeFromPackageFolders>
<ExcludeFromPackageFolders Include="Internal">
<FromTarget>css\bulma\css\*</FromTarget>
</ExcludeFromPackageFolders>
<ExcludeFromPackageFolders Include="Internal">
<FromTarget>App_Data\*</FromTarget>
</ExcludeFromPackageFolders>
</ItemGroup>
</Project>