dotnet publish doesn´t publish correct appsettings.{env.EnvironmentName}.json

Update: For current (new) .csproj format the CopyToPublishDirectory attribute should be used. It determines whether to copy the file to the publish directory and can have one of the following value: Always, PreserveNewest Never So add next section into your .csproj: <ItemGroup> <None Include=”appsettings.Production.json” CopyToPublishDirectory=”Always” /> </ItemGroup> Look into @nover answer and SO Exclude or … Read more

Gradle 7 and jitpack.io runs into error during publish

The Maven plugin has been eliminated in Gradle 7.0, please use the maven-publish plugin instead. I made it work with plugins { id ‘maven-publish’ … } task androidSourcesJar(type: Jar) { classifier ‘sources’ from android.sourceSets.main.java.srcDirs } project.afterEvaluate { publishing { publications { release(MavenPublication) { from components.release artifact androidSourcesJar // optional sources } } } } and … Read more

Using msbuild to execute a File System Publish Profile

FYI: I had the same issue with Visual Studio 2015. After many of hours trying, I can now do msbuild myproject.csproj /p:DeployOnBuild=true /p:PublishProfile=myprofile. I had to edit my .csproj file to get it working. It contained a line like this: <Import Project=”$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets” Condition=”false” /> I changed this line as follows: <Import Project=”$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v14.0\WebApplications\Microsoft.WebApplication.targets” /> (I changed … Read more

Publish documents in a collection to a meteor client depending on the existence of a specific document in another collection (publish-with-relations)

What you are looking for is a reactive join. You can accomplish this by directly using an observe in the publish function, or by using a library to do it for you. Meteor core is expected to have a join library at some point, but until then I’d recommend using publish-with-relations. Have a look at … Read more

Visual Studio SignTool.exe Not Found

I had the same issue but installing the Windows 8.1 SDK as per Catquatwa’s answer did not work for me (signtool.exe was still missing from C:\Program Files (x86)\Microsoft SDKs\Windows\vX\Bin). I stumbled across this solution: http://www.benedykt.net/2015/08/12/missing-signtool-exe-w-visual-studio-2015/ Basically, for VS 2015, this would be: Open Programs and Features Select “Microsoft Visual Studio 2015” and click “Change” Press … Read more