-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added code to toggle no offset limit to settings window
Fixed code for toggling the no offset Limit Added automatic updating of AssemblyVersion, from the .version file, displayed in the Settings window Removed extra set of configs for the Reflection offsets Fixed bug with local offset vs absolute offset; Code was not using the local setting, was always using the absolute setting
- Loading branch information
1 parent
0f44ab0
commit 33411b8
Showing
10 changed files
with
247 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
| ||
// This code was generated by a tool. Any changes made manually will be lost | ||
// the next time this code is regenerated. | ||
// | ||
|
||
using System.Reflection; | ||
|
||
[assembly: AssemblyVersion("3.3.7.0")] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
<#@ template debug="false" hostspecific="true" language="C#" #> | ||
<#@ import namespace="System.IO" #> | ||
<#@ output extension=".cs" #> | ||
|
||
<#@ assembly name="EnvDTE" #><# /* This assembly provides access to Visual Studio project properties. */ #> | ||
<# | ||
|
||
// Instructions | ||
// 1. Add a new Text Template to the project | ||
// 2. Copy this file into the new template | ||
// 3. Update the string: versionfile with the complete path to the .version file | ||
// 4. Remove the following line from the file AssemblyInfo.cs (usually located in the "Property" folder inside your C# project): | ||
// [assembly: AssemblyFileVersion("1.0.0.0")] | ||
// 5. Add the following to the PreBuild steps: | ||
// set textTemplatingPath="%CommonProgramFiles(x86)%\Microsoft Shared\TextTemplating\$(VisualStudioVersion)\texttransform.exe" | ||
// | ||
// if %textTemplatingPath%=="\Microsoft Shared\TextTemplating\$(VisualStudioVersion)\texttransform.exe" set textTemplatingPath="%CommonProgramFiles%\Microsoft Shared\TextTemplating\$(VisualStudioVersion)\texttransform.exe" | ||
// | ||
// %textTemplatingPath% "$(ProjectDir)AssemblyFileVersion.tt" | ||
|
||
int major = 0; | ||
int minor = 0; | ||
int build = 0; | ||
int patch = 0; | ||
|
||
int i = 0; | ||
int i2 = 0; | ||
string s; | ||
|
||
string versionfile = @"D:\Users\jbb\github\EditorExtensionsRedux\EditorExtensionsRedux\EditorExtensionsRedux.version"; | ||
if (!File.Exists(versionfile)) | ||
{ | ||
Write("File: " + versionfile + " missing\n"); | ||
} | ||
|
||
try | ||
{ | ||
foreach (var line in File.ReadAllLines(versionfile)) | ||
{ | ||
if (line != null) | ||
{ | ||
|
||
i = line.IndexOf(":"); | ||
i2 = line.IndexOf(","); | ||
if (i >= 0 && i2 >= 0) | ||
{ | ||
s = line.Substring(i + 1, i2 - i - 1); | ||
|
||
if (major == 0 && line.Contains("MAJOR")) | ||
Int32.TryParse(s, out major); | ||
|
||
if (minor == 0 && line.Contains("MINOR")) | ||
Int32.TryParse(s, out minor); | ||
|
||
if (patch == 0 && line.Contains("PATCH")) | ||
Int32.TryParse(s, out patch); | ||
|
||
if (build == 0 && line.Contains("BUILD")) | ||
Int32.TryParse(s, out build); | ||
} | ||
} | ||
} | ||
|
||
} | ||
catch | ||
{ | ||
major = 1; | ||
minor = 0; | ||
patch = 0; | ||
build = 0; | ||
} | ||
//Write("File done"); | ||
|
||
#> | ||
// This code was generated by a tool. Any changes made manually will be lost | ||
// the next time this code is regenerated. | ||
// | ||
|
||
using System.Reflection; | ||
|
||
[assembly: AssemblyVersion("<#= major #>.<#= minor #>.<#= patch #>.<#= build #>")] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.