versioning

nuspec and csproj package version tags

↘锁芯ラ 提交于 2019-11-28 12:14:39
问题 I have a new ASP/.NET Core project that I publish to NuGet. What's the recommended approach to keep the version tags in x.csproj and x.nuspec in sync when I publish a new package? 回答1: With new .csproj format, you can add all of the information to generate NuGet packages in the .csproj file. There is no longer a reason to use a .nuspec file. <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <AssemblyTitle>My NuGet Project</AssemblyTitle> <Description>Something I decided to release on NuGet.<

.net Setup project force new file replacement on reinstall

拜拜、爱过 提交于 2019-11-28 11:29:07
问题 I have a setup project that install a couple of projects and a couple of external files (one of which is a SQLite Database) - everything worked fine until i've recently modified the base database file included in the setup project. Now, everytime i try to reinstall the project the new database file does not replace the previously installed one... Can i force it somehow in VS or make the setup realize this is a new version so the file gets replaced? Best Regards, Carlos Ouro 回答1: One month and

create version.txt file in project dir via build.gradle task

≯℡__Kan透↙ 提交于 2019-11-28 08:56:47
Apologies in advance for my ignorance. I'm very new to gradle. My is goal is to have some task in my build.gradle file, wherein a file 'version.txt' is created in my project directory whenever I run the gradle terminal command in my project root. This 'version.txt' file needs to contain version metadata of the build, such as: Version: 1.0 Revision: 1z7g30jFHYjl42L9fh0pqzmsQkF Buildtime: 2016-06-14 07:16:37 EST Application-name: foobarbaz app (^Revision would be the git commit hash of the HEAD) I've tried to reuse snippets from the following resources, but to no avail, possibly because these

Why do I get “fatal: git status --porcelain failed”?

心不动则不痛 提交于 2019-11-28 08:55:19
This is a huge pain in the bum. I've got this a few times before and I don't understand why. 5 mins ago the repo was fine and working, I move some files around (which is all cool and all) and git poops its pants. Any idea why this happens? How can I fix it apart from cloning the repo, moving the files, etc... Oh dear I'm such a fail. It looks like the problem stems from Flash Builder copying over other .git repos into sub folders. The answer is to remove all .git folders that aren't the repo's one. In case it helps anyone else, I just encountered the same issue and found that running git init

WCF - handle versioning

北战南征 提交于 2019-11-28 08:15:06
问题 If I need to go from this service contract: [ServiceContract(Namespace="http://api.x.com/Svc1")] public interface IService1 { [OperationContract(Name = "AddCustomer")] bool AddCustomer(DTOCustomer1 customer); } to this: [ServiceContract(Namespace="http://api.x.com/Svc1")] public interface IService1 { [OperationContract(Name = "AddCustomer")] bool AddCustomer(DTOCustomer2 customer); } and according to this good article: Versioning WCF I understand that when data contract is changed there is a

pushing to a git repository does not work

ぃ、小莉子 提交于 2019-11-28 07:47:29
I am just starting out with GIT (i'm coming from cvs) and would like to set up something akin to cvs/svn with Git. I performed the following steps: cd o:/repository git init cd <working directory> git clone o:/repository i now created a file called file.txt with some content doing a "git status" lists appropriate changes. I then do git add file.txt git commit file.txt and both seem to work fine. When i do git push , i get the following error: No refs in common and none specified; doing nothing. Perhaps you should specify a branch such as 'master'. fatal: The remote end hung up unexpectedly

How to get exe application name and version in C# Compact Framework

你说的曾经没有我的故事 提交于 2019-11-28 06:50:50
My application has an exe and uses some DLLs. I am writing all in C#. In one DLL I want to write a method to get the application name and version from the version information in the exe. I understand that in full .NET I could use GetEntryAssembly, but that that is unavailable in CF. Getting the app name: System.Reflection.Assembly.GetExecutingAssembly().GetName().Name; Getting the version: System.Reflection.Assembly.GetExecutingAssembly().GetName().Version; You might want to use GetCallingAssembly() or getting the assembly by type (e.g. typeof(Program).Assembly ) if your DLL is trying to get

Referencing different versions of the same assembly

六月ゝ 毕业季﹏ 提交于 2019-11-28 06:45:45
If A references assembly B 1.1 and C, and C references B 1.2, how do you avoid assembly conflicts? I nievely assumed C's references would be encapsulated away and would not cause any problems, but it appears all the dll's are copied to the bin, which is where the problem occurs. I understand the two ways around this are to use the GAC or assembly bindings? The GAC doesn't seem like the best approach to me, as I don't like assuming dlls will be there, I prefer to reference dlls from a lib directory in my solution. Where as assembly bindings don't seem robust to me, what if one version of the

Subversion as version-incrementor at each commit?

匆匆过客 提交于 2019-11-28 06:01:08
问题 I'd like to update the (highest) revision number to a file inside a subversion repository after each commit. I thought of a svn version keyword, but doesn't this only get updated if the specific file was changed? i.e. I have a file version.php where i have the version/revision numbers, but only update anotherfile.php in my commit - this won't change the version/revision information version.php has. Is a commit hook my only option? If yes, any examples? 回答1: Sounds like you want some kind of

Keep user's settings after altering assembly/file version

℡╲_俬逩灬. 提交于 2019-11-28 05:53:44
Background I have a simple WinForms application written in C#. I debated deployment solutions for a while but ultimately decided to abandon ClickOnce as a few of the constraints were crucially restrictive. Instead, I've adapted a simple solution of versioning the application via the assembly/file versions (I keep them in sync) in the application's properties. I'm deploying via a Setup Project (*.msi). I store the latest assembly version number in an XML file online, as well as the latest installer file. At run-time, I simply check the Application.ProductVersion against the latest version