Web deployment task failed. (The type initializer for ‘Microsoft.Web.Deployment.DeploymentManager’ threw an exception.)

Okay, so I hit this problem and none of these answers worked for me. I boiled it down to a single line of code, namely: var deploymentOptions = new Microsoft.Web.Deployment.DeploymentBaseOptions(); If you don’t manually pass this to DeploymentManager it will internally instantiate this object. Even more interesting was that this code would run fine for … Read more

Rename app in google play store

The project name will not be used in Google Play Store. And the “app_name” is generally used for your title bar or as title in the android launcher,desktop,.. The display name of your App in Google Play Store is defined in the application settings in https://play.google.com/apps/publish/ changes may take some time(hours,days).

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

Upload artifact to Artifactory using Gradle

That’s because you don’t have any publications. The artifactory-publish plugin works with maven-publish plugin and uploads publications. If you prefer working with the old maven plugin, you need artifactory plugin, not artifactory-publish. Take a look at the Overview part in “Working with Gradle” page of the official docs.

Publishing from Visual Studio 2015 – allow untrusted certificates

The option to allow untrusted certificates is not yet supported in the current tooling. Hopefully, this gets updated very soon. You can, however, set it manually. Open the publish profile file (.pubxml) inside /Properties/PublishProfiles in a text editor Inside the <PropertyGroup> element, set AllowUntrustedCertificate to True (<AllowUntrustedCertificate>True</AllowUntrustedCertificate>) or add it if it doesn’t exist Set … 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

Saving a high resolution image in R

You can do the following. Add your ggplot code after the first line of code and end with dev.off(). tiff(“test.tiff”, units=”in”, width=5, height=5, res=300) # insert ggplot code dev.off() res=300 specifies that you need a figure with a resolution of 300 dpi. The figure file named ‘test.tiff’ is saved in your working directory. Change width … Read more

API to automatically upload apk to Google Play? [closed]

As of today there is a new official publishing API That allows you to upload to any channel (ie. alpha, beta…) or update title and description and more. From the docs: Uploading new versions of an app Releasing apps, by assigning APKs to various Tracks (alpha, beta, staged rollout, or production) Creating and modifying Google … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)