diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..577d11f1 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,7 @@ + +# Our batch files requires CRLF for correct work. +# https://github.com/3F/hMSBuild/issues/2 + +*.bat text eol=crlf +*.cmd text eol=crlf +*.tpl text eol=crlf \ No newline at end of file diff --git a/.gitignore b/.gitignore index 5a55173a..ae9bd86b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ ## Specific +/vsSolutionBuildEvent/source.extension.vsixmanifest + /vsSolutionBuildEvent/Version.cs /Bridge/Version.cs /CI.MSBuild/Version.cs diff --git a/.gnt/gnt.core b/.gnt/gnt.core index 3afa2c26..3c026411 100644 --- a/.gnt/gnt.core +++ b/.gnt/gnt.core @@ -1 +1 @@ -.nuget\packages.confighttps://www.nuget.org/api/v2/package/packages$(MSBuildToolsPath)\Microsoft.Build.Tasks.v$(MSBuildToolsVersion).dll$(MSBuildToolsPath)\Microsoft.Build.Tasks.Core.dll> h=delegate(string cfg,Queue list){foreach(var pkg in XDocument.Load(cfg).Descendants("package")){var id=pkg.Attribute("id");var version=pkg.Attribute("version");var output=pkg.Attribute("output");if(id==null){throw new ArgumentException(String.Format("Not found: 'id' in '{0}'",cfg));}var link=id.Value;if(version!=null){link+="/"+version.Value;}if(output!=null){list.Enqueue(link+":"+output.Value);continue;}list.Enqueue(link);}};var ret=new Queue();foreach(var cfg in config.Split('|')){var lcfg=Path.Combine(wpath,cfg??"");if(File.Exists(lcfg)){h(lcfg,ret);}}if(ret.Count < 1){throw new FileNotFoundException("List of packages is empty. Use .config or /p:ngpackages=\"...\"");}Result=String.Join(";",ret.ToArray());]]> dbg=delegate(string s,object p){if(debug){Console.WriteLine(s,p);}};Func loc=delegate(string p){return Path.Combine(wpath,p??"");};Action get=delegate(string link,string name,string path){string output=Path.GetFullPath(loc(path??name));if(Directory.Exists(output)){Console.WriteLine("`{0}` is already exists. /pass `{1}`",name,output);return;}Console.Write("Getting `{0}` ... ",link);string temp=Path.Combine(Path.GetTempPath(),name);using(WebClient wc=new WebClient()){wc.DownloadFile(url+link,temp);}Console.WriteLine("Extracting into `{0}`",output);using(Package package=ZipPackage.Open(temp,FileMode.Open,FileAccess.Read)){foreach(PackagePart part in package.GetParts()){var uri=Uri.UnescapeDataString(part.Uri.OriginalString);if(ignore.Any(x=> uri.StartsWith(x,StringComparison.Ordinal))){continue;}var dest=Path.Combine(output,uri.TrimStart('/'));dbg("- `{0}`",uri);var dir=Path.GetDirectoryName(dest);if(!Directory.Exists(dir)){Directory.CreateDirectory(dir);}using(Stream source=part.GetStream(FileMode.Open,FileAccess.Read))using(FileStream target=File.OpenWrite(dest)){source.CopyTo(target);}}}dbg("Done.{0}",Environment.NewLine);};foreach(var package in plist.Split(';')){var ident=package.Split(':');var link=ident[0];var path=(ident.Length > 1)?ident[1]: null;var name=link.Replace('/','.');if(!String.IsNullOrEmpty(defpath)){path=Path.Combine(defpath,path??name);}get(link,name,path);}]]> dbg=delegate(string s,object p){if(debug){Console.WriteLine(s,p);}};dir=Path.Combine(wpath,dir);dout=Path.Combine(wpath,dout??"");var nuspec=Directory.GetFiles(dir,"*"+EXT_NUSPEC,SearchOption.TopDirectoryOnly).FirstOrDefault();if(nuspec==null){throw new FileNotFoundException(String.Format("The {0} file is not found in `{1}`",EXT_NUSPEC,dir));}Console.WriteLine("Found {0}: `{1}`",EXT_NUSPEC,nuspec);var root=XDocument.Load(nuspec).Root.Elements().FirstOrDefault(x=> x.Name.LocalName==TAG_META);if(root==null){throw new FileNotFoundException(String.Format("The `{0}` not contains {1}.",nuspec,TAG_META));}var metadata=new Dictionary();foreach(var tag in root.Elements()){metadata[tag.Name.LocalName.ToLower()]=tag.Value;}if(metadata[ID].Length > 100 ||!Regex.IsMatch(metadata[ID],@"^\w+([_.-]\w+)*$",RegexOptions.IgnoreCase | RegexOptions.ExplicitCapture)){throw new FormatException(String.Format("The data format of `{0}` is not correct.",ID));}new Version(metadata[VER]);var ignore=new string[]{Path.Combine(dir,"_rels"),Path.Combine(dir,"package"),Path.Combine(dir,"[Content_Types].xml")};string pout=String.Format("{0}.{1}{2}",metadata[ID],metadata[VER],EXT_NUPKG);if(!String.IsNullOrWhiteSpace(dout)){if(!Directory.Exists(dout)){Directory.CreateDirectory(dout);}pout=Path.Combine(dout,pout);}Console.WriteLine("Started packing `{0}` ...",pout);using(Package package=Package.Open(pout,FileMode.Create)){Uri manifestUri=new Uri(String.Format("/{0}{1}",metadata[ID],EXT_NUSPEC),UriKind.Relative);package.CreateRelationship(manifestUri,TargetMode.Internal,MANIFEST_URL);foreach(var file in Directory.GetFiles(dir,"*.*",SearchOption.AllDirectories)){if(ignore.Any(x=> file.StartsWith(x,StringComparison.Ordinal))){continue;}string pUri;if(file.StartsWith(dir,StringComparison.OrdinalIgnoreCase)){pUri=file.Substring(dir.Length).TrimStart(Path.DirectorySeparatorChar);}else{pUri=file;}dbg("- `{0}`",pUri);var escaped=String.Join("/",pUri.Split('\\','/').Select(p=> Uri.EscapeDataString(p)));Uri uri=PackUriHelper.CreatePartUri(new Uri(escaped,UriKind.Relative));PackagePart part=package.CreatePart(uri,DEF_CONTENT_TYPE,CompressionOption.Maximum);using(Stream tstream=part.GetStream())using(FileStream fileStream=new FileStream(file,FileMode.Open,FileAccess.Read)){fileStream.CopyTo(tstream);}}Func getmeta=delegate(string key){return(metadata.ContainsKey(key))?metadata[key]:"";};package.PackageProperties.Creator=getmeta("authors");package.PackageProperties.Description=getmeta("description");package.PackageProperties.Identifier=metadata[ID];package.PackageProperties.Version=metadata[VER];package.PackageProperties.Keywords=getmeta("tags");package.PackageProperties.Title=getmeta("title");package.PackageProperties.LastModifiedBy=String.Format("GetNuTool v{0}",vtool);}]]>1.5$(MSBuildProjectDirectory) \ No newline at end of file +packages.confighttps://www.nuget.org/api/v2/package/packages$(MSBuildToolsPath)\Microsoft.Build.Tasks.v$(MSBuildToolsVersion).dll$(MSBuildToolsPath)\Microsoft.Build.Tasks.Core.dll>e=delegate(string f,Queueg){foreach(var h in XDocument.Load(f).Descendants("package")){var i=h.Attribute("id");var j=h.Attribute("version");var k=h.Attribute("output");if(i==null){d.WriteLine("'id' does not exist in '{0}'",f);return;}var l=i.Value;if(j!=null){l+="/"+j.Value;}if(k!=null){g.Enqueue(l+":"+k.Value);continue;}g.Enqueue(l);}};var m=new Queue();foreach(var f in a.Split(new char[]{a.IndexOf('|')!=-1?'|':';'},(StringSplitOptions)1)){var n=Path.Combine(c,f);if(File.Exists(n)){e(n,m);}else{d.WriteLine(".config '{0}' was not found.",n);}}if(m.Count<1){d.WriteLine("Empty list. Use .config or /p:ngpackages=\"...\"\n");}else{Result=string.Join("|",m.ToArray());}]]>g=delegate(string h,object i){if(e){Console.WriteLine(h,i);}};Funcj=delegate(string k){var l=k.Split('@');if(l.Length<=1){return new WebProxy(l[0],false);}var m=l[0].Split(':');return new WebProxy(l[1],false){Credentials=new NetworkCredential(m[0],(m.Length>1)?m[1]:null)};};Funcn=delegate(string i){return Path.Combine(b,i??"");};Actiono=delegate(string p,string q,string r){var s=Path.GetFullPath(n(r??q));if(Directory.Exists(s)){Console.WriteLine("`{0}` is already exists: \"{1}\"",q,s);return;}Console.Write("Getting `{0}` ... ",p);var t=Path.Combine(Path.GetTempPath(),Guid.NewGuid().ToString());using(var u=new WebClient()){try{if(!String.IsNullOrEmpty(d)){u.Proxy=j(d);}u.Headers.Add("User-Agent","GetNuTool $(GetNuTool)");u.UseDefaultCredentials=true;u.DownloadFile(a+p,t);}catch(Exception v){Console.Error.WriteLine(v.Message);return;}}Console.WriteLine("Extracting into \"{0}\"",s);using(var w=ZipPackage.Open(t,FileMode.Open,FileAccess.Read)){foreach(var x in w.GetParts()){var y=Uri.UnescapeDataString(x.Uri.OriginalString);if(f.Any(z=>y.StartsWith(z,StringComparison.Ordinal))){continue;}var _=Path.Combine(s,y.TrimStart('/'));g("- `{0}`",y);var aa=Path.GetDirectoryName(_);if(!Directory.Exists(aa)){Directory.CreateDirectory(aa);}using(Stream ab=x.GetStream(FileMode.Open,FileAccess.Read))using(var ac=File.OpenWrite(_)){try{ab.CopyTo(ac);}catch(FileFormatException v){g("[x]?crc: {0}",_);}}}}File.Delete(t);};foreach(var w in plist.Split(new char[]{plist.IndexOf('|')!=-1?'|':';'},(StringSplitOptions)1)){var ad=w.Split(new char[]{':'},2);var p=ad[0];var r=(ad.Length>1)?ad[1]:null;var q=p.Replace('/','.');if(!String.IsNullOrEmpty(c)){r=Path.Combine(c,r??q);}o(p,q,r);}]]>e=delegate(string f,object g){if(d){Console.WriteLine(f,g);}};var h=Console.Error;a=Path.Combine(c,a);if(!Directory.Exists(a)){h.WriteLine("`{0}` was not found.",a);return false;}b=Path.Combine(c,b);var i=Directory.GetFiles(a,"*"+EXT_NUSPEC,SearchOption.TopDirectoryOnly).FirstOrDefault();if(i==null){h.WriteLine("{0} was not found in `{1}`",EXT_NUSPEC,a);return false;}Console.WriteLine("Found {0}: `{1}`",EXT_NUSPEC,i);var j=XDocument.Load(i).Root.Elements().FirstOrDefault(k=>k.Name.LocalName==TAG_META);if(j==null){h.WriteLine("{0} does not contain {1}.",i,TAG_META);return false;}var l=new Dictionary();foreach(var m in j.Elements()){l[m.Name.LocalName.ToLower()]=m.Value;}if(l[ID].Length>100||!Regex.IsMatch(l[ID],@"^\w+([_.-]\w+)*$",RegexOptions.IgnoreCase|RegexOptions.ExplicitCapture)){h.WriteLine("The format of `{0}` is not correct.",ID);return false;}var n=new string[]{Path.Combine(a,"_rels"),Path.Combine(a,"package"),Path.Combine(a,"[Content_Types].xml")};var o=string.Format("{0}.{1}{2}",l[ID],l[VER],EXT_NUPKG);if(!String.IsNullOrWhiteSpace(b)){if(!Directory.Exists(b)){Directory.CreateDirectory(b);}o=Path.Combine(b,o);}Console.WriteLine("Started packing `{0}` ...",o);using(var p=Package.Open(o,FileMode.Create)){Uri q=new Uri(String.Format("/{0}{1}",l[ID],EXT_NUSPEC),UriKind.Relative);p.CreateRelationship(q,TargetMode.Internal,MANIFEST_URL);foreach(var r in Directory.GetFiles(a,"*.*",SearchOption.AllDirectories)){if(n.Any(k=>r.StartsWith(k,StringComparison.Ordinal))){continue;}string s;if(r.StartsWith(a,StringComparison.OrdinalIgnoreCase)){s=r.Substring(a.Length).TrimStart(Path.DirectorySeparatorChar);}else{s=r;}e("- `{0}`",s);var t=string.Join("/",s.Split('\\','/').Select(g=>Uri.EscapeDataString(g)));Uri u=PackUriHelper.CreatePartUri(new Uri(t,UriKind.Relative));var v=p.CreatePart(u,DEF_CONTENT_TYPE,CompressionOption.Maximum);using(Stream w=v.GetStream())using(var x=new FileStream(r,FileMode.Open,FileAccess.Read)){x.CopyTo(w);}}Funcy=delegate(string z){return(l.ContainsKey(z))?l[z]:"";};var _=p.PackageProperties;_.Creator=y("authors");_.Description=y("description");_.Identifier=l[ID];_.Version=l[VER];_.Keywords=y("tags");_.Title=y("title");_.LastModifiedBy="GetNuTool $(GetNuTool)";}]]>1.7.0.7737_4bc1dfb$(MSBuildProjectDirectory) \ No newline at end of file diff --git a/.vssbe b/.vssbe index 9c9bc7b7..59dda2a1 100644 --- a/.vssbe +++ b/.vssbe @@ -91,11 +91,12 @@ "Mode": { "$type": "net.r_eg.vsSBE.Events.ModeScript, vsSolutionBuildEvent", "Type": "Script", - "Command": "$(revDeltaBase = \"2016/11/05\")\n$(revDeltaMin = $([System.Math]::Pow(10, 3)))\n$(revDeltaMax = $([System.Math]::Pow(10, 5)))\n\n#[\" \n To restore packages via GetNuTool\n https://github.com/NuGet/Home/issues/1521\n\"]\n#[NuGet gnt.raw(\"/p:ngconfig=\\\".gnt/packages.config\\\"\")]", + "Command": "$(revDeltaBase = \"2016/11/05\")\n$(revDeltaMin = $([System.Math]::Pow(10, 3)))\n$$(revDeltaMax = $([System.Math]::Pow(10, 5)))\n$(revDeltaMax = 65534) #[\" limit of AssemblyVersion (2^16 - 2) - i.e. 65534 max allowed \"]\n\n#[\" \n To restore packages via GetNuTool\n https://github.com/NuGet/Home/issues/1521\n\"]\n#[NuGet gnt.raw(\"/p:ngconfig=\\\".gnt/packages.config\\\"\")]", "Command__": [ - "$(revDeltaBase = \"2016/11/05\")", - "$(revDeltaMin = $([System.Math]::Pow(10, 3)))", - "$(revDeltaMax = $([System.Math]::Pow(10, 5)))", + "$(revDeltaBase = \"2016/11/05\")", + "$(revDeltaMin = $([System.Math]::Pow(10, 3)))", + "$$(revDeltaMax = $([System.Math]::Pow(10, 5)))", + "$(revDeltaMax = 65534) #[\" limit of AssemblyVersion (2^16 - 2) - i.e. 65534 max allowed \"]", "", "#[\" ", " To restore packages via GetNuTool", @@ -128,7 +129,7 @@ "Mode": { "$type": "net.r_eg.vsSBE.Events.ModeScript, vsSolutionBuildEvent", "Type": "Script", - "Command": "#[\"\n Prepares data - version, revBuild & information from git\n\"]\n\n#[var tBase = $([System.DateTime]::Parse('$(revDeltaBase)').ToBinary())]\n#[var tNow = $([System.DateTime]::UtcNow.Ticks)]\n#[var revBuild = $([System.TimeSpan]::FromTicks('$([MSBuild]::Subtract($(tNow), $(tBase)))').TotalMinutes.ToString('0'))]\n#[var revBuild = $([MSBuild]::Add($(revDeltaMin), $([MSBuild]::Modulo($(revBuild), $([MSBuild]::Subtract($(revDeltaMax), $(revDeltaMin)))))))]\n\n#[var tplVersion = #[File get(\"Version.tpl\")]]\n\n#[var pDir = vsSolutionBuildEvent/]\n#[var pDirBridge = Bridge/]\n#[var pDirCIM = CI.MSBuild/]\n#[var pDirDevenv = Devenv\\]\n#[var pDirProvider = Provider/]\n\n#[var numSBE = #[File get(\".version\")]]\n#[var numBridge = #[File get(\"#[var pDirBridge].version\")]]\n#[var numCIM = #[File get(\"#[var pDirCIM].version\")]]\n#[var numDevenv = #[File get(\"#[var pDirDevenv].version\")]]\n#[var numProvider = #[File get(\"#[var pDirProvider].version\")]]\n\n#[\" the 0 number is reserved for patches from external assemblies /see AssemblyInfo \"]\n\n#[var num0Bridge = #[var numBridge].0]\n#[var num0CIM = #[var numCIM].0]\n#[var num0Devenv = #[var numDevenv].0]\n#[var num0Provider = #[var numProvider].0]\n\n#[var libCore = #[var numSBE]]\n#[var libCoreInt = $([System.Convert]::ToInt32(\"$(libCore.Replace('.', '0'))\"))]#[\" v0.12.5 -> 1205 \"]", + "Command": "#[\"\n Prepares data - version, revBuild & information from git\n\"]\n\n#[var tBase = $([System.DateTime]::Parse('$(revDeltaBase)').ToBinary())]\n#[var tNow = $([System.DateTime]::UtcNow.Ticks)]\n#[var revBuild = $([System.TimeSpan]::FromTicks('$([MSBuild]::Subtract($(tNow), $(tBase)))').TotalMinutes.ToString('0'))]\n#[var revBuild = $([MSBuild]::Add($(revDeltaMin), $([MSBuild]::Modulo($(revBuild), $([MSBuild]::Subtract($(revDeltaMax), $(revDeltaMin)))))))]\n\n#[var tplVersion = #[File get(\"Version.tpl\")]]\n\n#[var pDir = vsSolutionBuildEvent/]\n#[var pDirBridge = Bridge/]\n#[var pDirCIM = CI.MSBuild/]\n#[var pDirDevenv = Devenv\\]\n#[var pDirProvider = Provider/]\n\n#[var numSBE = #[File get(\".version\")]]\n#[var numBridge = #[File get(\"#[var pDirBridge].version\")]]\n#[var numCIM = #[File get(\"#[var pDirCIM].version\")]]\n#[var numDevenv = #[File get(\"#[var pDirDevenv].version\")]]\n#[var numProvider = #[File get(\"#[var pDirProvider].version\")]]\n\n#[\" the 0 number is reserved for patches from external assemblies /see AssemblyInfo \"]\n\n#[var num0Bridge = #[var numBridge].0]\n#[var num0CIM = #[var numCIM].0]\n#[var num0Devenv = #[var numDevenv].0]\n#[var num0Provider = #[var numProvider].0]\n\n#[var libCore = #[var numSBE]]\n#[var libCoreInt = $([System.Convert]::ToInt32(\"$(libCore.Replace('.', '0'))\"))]#[\" v0.12.5 -> 1205 \"]\n\n#[var cfgSDK = #[( $(Configuration) =^ \"_SDK15\" ) {15} else {10} ]]", "Command__": [ "#[\"", " Prepares data - version, revBuild & information from git", @@ -161,7 +162,9 @@ "#[var num0Provider = #[var numProvider].0]", "", "#[var libCore = #[var numSBE]]", - "#[var libCoreInt = $([System.Convert]::ToInt32(\"$(libCore.Replace('.', '0'))\"))]#[\" v0.12.5 -> 1205 \"]" + "#[var libCoreInt = $([System.Convert]::ToInt32(\"$(libCore.Replace('.', '0'))\"))]#[\" v0.12.5 -> 1205 \"]", + "", + "#[var cfgSDK = #[( $(Configuration) =^ \"_SDK15\" ) {15} else {10} ]]" ] } }, @@ -188,9 +191,13 @@ "Mode": { "$type": "net.r_eg.vsSBE.Events.ModeScript, vsSolutionBuildEvent", "Type": "Script", - "Command": "#[( #[File exists.directory(\".git\")] && #[File exists.file(\"git.exe\", true)] )\n{\n #[var branchSha1 = #[File sout(\"git\", \"rev-parse --short HEAD\")]]\n #[var branchName = #[File sout(\"git\", \"rev-parse --abbrev-ref HEAD\")]]\n #[var branchRevCount = #[File sout(\"git\", \"rev-list HEAD --count\")]]\n \n #[var csVersion = $(tplVersion.Replace(%branchName%, \"$(branchName)\").Replace(%branchSha1%, \"$(branchSha1)\").Replace(%branchRevCount%, \"$(branchRevCount)\"))]\n \n #[($(branchName) == \"HEAD\") {\n #[var branchName = $(APPVEYOR_REPO_BRANCH)]\n }]\n}\nelse {\n #[var branchSha1 =-] #[var branchName =-] #[var branchRevCount =-]\n #[var csVersion = $(tplVersion.Replace(%branchName%, \"-\").Replace(%branchSha1%, \"-\").Replace(%branchRevCount%, \"-\"))]\n}]\n\n\n#[\"\n 'vsSolutionBuildEvent' project\n\"]\n\n#[var cs = $(csVersion.Replace(\"%Version%\", \"$(numSBE.Replace('.', ', ')), $(revBuild)\").Replace(\"%namespace%\", \"\"))]\n#[var cs = $(cs.Replace(\"%VersionRevString%\", \"$(numSBE).$(revBuild)\").Replace(\"%VersionString%\", \"$(numSBE)\"))]\n#[File write(\"#[var pDir]Version.cs\"):#[var cs]]\n\n\n#[\"\n .vsixmanifest\n\"]\n\n#[( $(Configuration) ^= \"CI_\" || $(Configuration) ~= \"_with_revision\" ) {\n #[var numSBE = #[var numSBE].#[var revBuild]]\n}]\n#[File replace.Regexp(\"#[var pDir]/source.extension.vsixmanifest\", \"[0-9.]+\", \"#[var numSBE]\")]", + "Command": "#[\" \n Checking of the git to define sha1, branch name, etc.\n\"]\n#[var isGit = #[IO cmd(\"git rev-parse 2>&1\")]]\n#[( $(isGit) == \"\" )\n{\n #[var branchSha1 = #[File sout(\"git\", \"rev-parse --short HEAD\")]]\n #[var branchName = #[File sout(\"git\", \"rev-parse --abbrev-ref HEAD\")]]\n #[var branchRevCount = #[File sout(\"git\", \"rev-list HEAD --count\")]]\n \n #[var csVersion = $(tplVersion.Replace(%branchName%, \"$(branchName)\").Replace(%branchSha1%, \"$(branchSha1)\").Replace(%branchRevCount%, \"$(branchRevCount)\"))]\n \n #[($(branchName) == \"HEAD\") {\n #[var branchName = $(APPVEYOR_REPO_BRANCH)]\n }]\n}\nelse {\n #[var branchSha1 =-] #[var branchName =-] #[var branchRevCount =-]\n #[var csVersion = $(tplVersion.Replace(%branchName%, \"-\").Replace(%branchSha1%, \"-\").Replace(%branchRevCount%, \"-\"))]\n}]\n\n\n#[\"\n 'vsSolutionBuildEvent' project\n\"]\n\n#[var cs = $(csVersion.Replace(\"%Version%\", \"$(numSBE.Replace('.', ', ')), $(revBuild)\").Replace(\"%namespace%\", \"\"))]\n#[var cs = $(cs.Replace(\"%VersionRevString%\", \"$(numSBE).$(revBuild)\").Replace(\"%VersionString%\", \"$(numSBE)\"))]\n#[File write(\"#[var pDir]Version.cs\"):#[var cs]]\n\n\n#[\"\n .vsixmanifest\n\"]\n\n#[( $(Configuration) ^= \"RCI_\" ) {\n #[var numSBE = #[var numSBE].#[var revBuild]]\n}]\n#[File replace.Regexp(\"#[var pDir]/sdk10.vsixmanifest\", \"[0-9.]+\", \"#[var numSBE]\")]\n\n#[File replace.Regexp(\"#[var pDir]/sdk15.vsixmanifest\", \"(&1\")]]", + "#[( $(isGit) == \"\" )", "{", " #[var branchSha1 = #[File sout(\"git\", \"rev-parse --short HEAD\")]]", " #[var branchName = #[File sout(\"git\", \"rev-parse --abbrev-ref HEAD\")]]", @@ -221,10 +228,43 @@ " .vsixmanifest", "\"]", "", - "#[( $(Configuration) ^= \"CI_\" || $(Configuration) ~= \"_with_revision\" ) {", + "#[( $(Configuration) ^= \"RCI_\" ) {", " #[var numSBE = #[var numSBE].#[var revBuild]]", "}]", - "#[File replace.Regexp(\"#[var pDir]/source.extension.vsixmanifest\", \"[0-9.]+\", \"#[var numSBE]\")]" + "#[File replace.Regexp(\"#[var pDir]/sdk10.vsixmanifest\", \"[0-9.]+\", \"#[var numSBE]\")]", + "", + "#[File replace.Regexp(\"#[var pDir]/sdk15.vsixmanifest\", \"( - Debug + DBG_SDK10 AnyCPU 8.0.30703 2.0 @@ -12,48 +12,46 @@ Bridge v4.0 net40 - NET_40 512 1.1.0 + CS1591;IDE1006 - + true full false bin\Debug\ - $(DefineConstants);DEBUG;TRACE + NET_40;DEBUG;TRACE prompt 4 - + pdbonly true bin\Release\ - $(DefineConstants) + NET_40 prompt 4 - CS1591 bin\Release\Bridge.XML - - v4.5 + + v4.6 net45 bin\Release\ - NET_45 + true pdbonly AnyCPU prompt MinimumRecommendedRules.ruleset bin\Release\Bridge.XML - CS1591 - - v4.5 + + v4.6 net45 true bin\Debug\ - NET_45;DEBUG;TRACE + DEBUG;TRACE full AnyCPU prompt diff --git a/CI.MSBuild/CI.MSBuild.bat b/CI.MSBuild/CI.MSBuild.bat index f2c92e2a..cb6f3337 100644 --- a/CI.MSBuild/CI.MSBuild.bat +++ b/CI.MSBuild/CI.MSBuild.bat @@ -3,4 +3,4 @@ REM # The documentation: http://vssbe.r-eg.net/doc/CI/CI.MSBuild/ set cimdll=CI.MSBuild.dll -msbuild %* /l:"%~dp0%cimdll%" /nologo \ No newline at end of file +hMSBuild %* /l:"%~dp0%cimdll%" /nologo \ No newline at end of file diff --git a/CI.MSBuild/CI.MSBuild.csproj b/CI.MSBuild/CI.MSBuild.csproj index 8d79560a..1943975e 100644 --- a/CI.MSBuild/CI.MSBuild.csproj +++ b/CI.MSBuild/CI.MSBuild.csproj @@ -1,7 +1,7 @@  - Debug + DBG_SDK10 AnyCPU 8.0.30703 2.0 @@ -14,47 +14,45 @@ key.snk v4.0 net40 - NET_40 512 + CS1591;IDE1006 - + true full false bin\Debug\ - $(DefineConstants);DEBUG;TRACE + NET_40;DEBUG;TRACE prompt 4 - + pdbonly true bin\Release\ - $(DefineConstants) + NET_40 prompt 4 bin\Release\CI.MSBuild.XML - CS1591 - - v4.5 + + v4.6 net45 bin\Release\ - NET_45 + true pdbonly AnyCPU prompt MinimumRecommendedRules.ruleset bin\Release\CI.MSBuild.XML - CS1591 - - v4.5 + + v4.6 net45 true bin\Debug\ - NET_45;DEBUG;TRACE + DEBUG;TRACE full AnyCPU prompt @@ -94,7 +92,7 @@ Always - + Always diff --git a/CIMLib/CIMLib.csproj b/CIMLib/CIMLib.csproj index fbeddd96..e48c4e3c 100644 --- a/CIMLib/CIMLib.csproj +++ b/CIMLib/CIMLib.csproj @@ -1,7 +1,7 @@  - Release + REL_SDK10 AnyCPU 8.0.30703 2.0 @@ -13,26 +13,26 @@ CIMLib v4.0 net40 - NET_40 512 + CS1591;IDE1006 - + AnyCPU pdbonly true bin\ - $(DefineConstants) + NET_40 prompt 3 false true - - v4.5 + + v4.6 net45 true bin\ - NET_45 + true 3 pdbonly diff --git a/ClientDemo/ClientDemo.csproj b/ClientDemo/ClientDemo.csproj index 3d5f47da..3f591c8c 100644 --- a/ClientDemo/ClientDemo.csproj +++ b/ClientDemo/ClientDemo.csproj @@ -1,7 +1,7 @@  - Debug + DBG_SDK10 AnyCPU {9673A8FC-07E1-4BB3-A97E-020481A5275E} Library @@ -12,43 +12,43 @@ key.snk v4.0 net40 - NET_40 512 + CS1591;IDE1006 - + true full false bin\Debug\ - $(DefineConstants);DEBUG;TRACE + NET_40;DEBUG;TRACE prompt 4 - + pdbonly true bin\Release\ - $(DefineConstants) + NET_40 prompt 4 - - v4.5 + + v4.6 net45 bin\Release\ - NET_45 + true pdbonly AnyCPU prompt MinimumRecommendedRules.ruleset - - v4.5 + + v4.6 net45 true bin\Debug\ - NET_45;DEBUG;TRACE + DEBUG;TRACE full AnyCPU prompt diff --git a/Devenv/Devenv.AddIn b/Devenv/Devenv.AddIn index 8094a198..70ee515e 100644 --- a/Devenv/Devenv.AddIn +++ b/Devenv/Devenv.AddIn @@ -13,8 +13,8 @@ 12.0 - vsSolutionBuildEvent Devenv Command-Line - Add-in to vsSolutionBuildEvent + vsSolutionBuildEvent Devenv + vsSolutionBuildEvent Devenv Command-Line version Devenv/Devenv.dll net.r_eg.vsSBE.Devenv.Connect 4 diff --git a/Devenv/Devenv.csproj b/Devenv/Devenv.csproj index cd6b97d0..a8913be1 100644 --- a/Devenv/Devenv.csproj +++ b/Devenv/Devenv.csproj @@ -1,7 +1,7 @@  - Debug + DBG_SDK10 AnyCPU 8.0.30424 2.0 @@ -16,15 +16,15 @@ .\bin\ v4.0 net40 - NET_40 1.1.0 + CS1591;IDE1006 - + true false .\bin\Debug\ false - $(DefineConstants);DEBUG;TRACE + NET_40;DEBUG;TRACE 4 false @@ -33,40 +33,38 @@ pdbonly prompt - + true true .\bin\Release\ false - $(DefineConstants) + NET_40 4 false bin\Release\Devenv.XML - CS1591 false pdbonly prompt - - v4.5 + + v4.6 net45 true .\bin\Release\ - NET_45 + true pdbonly AnyCPU prompt MinimumRecommendedRules.ruleset bin\Release\Devenv.XML - CS1591 - - v4.5 + + v4.6 net45 true .\bin\Debug\ - NET_45;DEBUG;TRACE + DEBUG;TRACE pdbonly AnyCPU prompt diff --git a/Provider/Provider.csproj b/Provider/Provider.csproj index 0f7f1a92..354854e4 100644 --- a/Provider/Provider.csproj +++ b/Provider/Provider.csproj @@ -1,7 +1,7 @@  - Debug + DBG_SDK10 AnyCPU 8.0.30703 2.0 @@ -14,47 +14,45 @@ Provider v4.0 net40 - NET_40 512 + CS1591;IDE1006 - + true full false bin\Debug\ - $(DefineConstants);DEBUG;TRACE + NET_40;DEBUG;TRACE prompt 4 - + pdbonly true bin\Release\ - $(DefineConstants) + NET_40 prompt 4 bin\Release\Provider.XML - CS1591 - - v4.5 + + v4.6 net45 bin\Release\ - NET_45 + true pdbonly AnyCPU prompt MinimumRecommendedRules.ruleset bin\Release\Provider.XML - CS1591 - - v4.5 + + v4.6 net45 true bin\Debug\ - NET_45;DEBUG;TRACE + DEBUG;TRACE full AnyCPU prompt diff --git a/VsixLib.targets b/VsixLib.targets index 4d2a5eab..e1a97399 100644 --- a/VsixLib.targets +++ b/VsixLib.targets @@ -41,7 +41,7 @@ - + diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 522d9130..00000000 --- a/appveyor.yml +++ /dev/null @@ -1,27 +0,0 @@ -version: build-{build} -nuget: - disable_publish_on_pr: true -build_script: -- build_[CI_Debug] -artifacts: -- path: bin\Releases - name: Releases -- path: bin\Releases\Bridge_v* - name: Bridge -- path: bin\Releases\CI.MSBuild_v* - name: CI.MSBuild -- path: bin\Releases\Devenv_v* - name: Devenv -- path: bin\Releases\Provider_v* - name: Provider -- path: bin\Releases\Release_notes.txt - name: Release_notes -- path: bin\Releases\vsSolutionBuildEvent_v* - name: vsSolutionBuildEvent -notifications: -- provider: Email - to: - - entry.reg@gmail.com - on_build_success: false - on_build_failure: false - on_build_status_changed: true \ No newline at end of file diff --git a/bin/Readme.md b/bin/Readme.md index b756bc7b..e89f394e 100644 --- a/bin/Readme.md +++ b/bin/Readme.md @@ -1,11 +1,13 @@ -All final binaries will be here... -Use ['build_x.bat'](../build) file-helpers to start build without Visual Studio like: +SDK10 + SDK15 -``` -"msbuild.exe" "vsSolutionBuildEvent.sln" /l:"packages\vsSBE.CI.MSBuild\bin\CI.MSBuild.dll" /m:4 /p:Configuration=Debug +```bat +.\build {type} ``` -*Or click on `Build` - `Build Solution` if you have [installed plugin](https://visualstudiogallery.msdn.microsoft.com/0d1dbfd7-ed8a-40af-ae39-281bfeca2334/)* +Where *{type}:* -/**[How to build](http://vssbe.r-eg.net/doc/Dev/How%20to%20build/)** (the list of requirements etc.) \ No newline at end of file +* **DBG** - debug +* **REL** - release +* **DCI** - CI debug +* **RCI** - CI release diff --git a/build.bat b/build.bat new file mode 100644 index 00000000..a5584436 --- /dev/null +++ b/build.bat @@ -0,0 +1,54 @@ +@echo off + +REM # Version of used CI.MSBuild +set cimdll=packages\vsSBE.CI.MSBuild\bin\CI.MSBuild.dll + +REM # MSBuild tools +set _msbuild=tools\hMSBuild -notamd64 + +REM # Solution file by defualt +set sln=vsSolutionBuildEvent.sln + +REM # Platform by default +set platform="Any CPU" + +REM # Verbosity level by default: q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic]. +set level=minimal + +set _gnt=tools\gnt + +:::: -------- + +REM # Configuration name without postfix _SDK... +:: DBG == Debug; REL == Release; DCI == CI Debug; RCI == CI Release; + +set reltype=%~1 + +if "%reltype%"=="" ( + set "reltype=DCI" +) + +:::: -------- + +set __p_call=1 + +:: Packages + +call %_msbuild% ".gnt/gnt.core" /p:ngpath="%cd%/packages" /p:ngconfig="%cd%/.gnt/packages.config;%cd%/vsSolutionBuildEvent/packages.config;%cd%/vsSolutionBuildEventTest/packages.config" /nologo /v:m + +:: Build + +set bnode=%_msbuild% %sln% /m:4 /l:"%cimdll%" /p:Platform=%platform% /v:%level% + +call %bnode% /p:Configuration=%reltype%_SDK10 /t:Rebuild || goto err +call %bnode% /p:Configuration=%reltype%_SDK15 /t:Build || goto err + +goto ok + +:err + +echo. Build failed. 1>&2 +exit /B 1 + +:ok +exit /B 0 diff --git a/build/Readme.md b/build/Readme.md deleted file mode 100644 index dc38c1b4..00000000 --- a/build/Readme.md +++ /dev/null @@ -1,7 +0,0 @@ -A very simple file-helpers to start build, for example: - -``` -"C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe" "vsSolutionBuildEvent.sln" /verbosity:detailed /l:"packages\vsSBE.CI.MSBuild\bin\CI.MSBuild.dll" /m:4 /p:Configuration=Debug /p:Platform="Any CPU" -``` - -/**[How to build](http://vssbe.r-eg.net/doc/Dev/How%20to%20build/)** \ No newline at end of file diff --git a/build/[CI_Debug][net40].bat b/build/[CI_Debug][net40].bat deleted file mode 100644 index 9ba821e6..00000000 --- a/build/[CI_Debug][net40].bat +++ /dev/null @@ -1,6 +0,0 @@ -call "%~dp0_config" - -REM # Configuration -set cfgname=CI_Debug - -call "%~dp0_build" \ No newline at end of file diff --git a/build/[CI_Debug][net45].bat b/build/[CI_Debug][net45].bat deleted file mode 100644 index 1323ad00..00000000 --- a/build/[CI_Debug][net45].bat +++ /dev/null @@ -1,6 +0,0 @@ -call "%~dp0_config" - -REM # Configuration -set cfgname=CI_Debug_net45 - -call "%~dp0_build" \ No newline at end of file diff --git a/build/[CI_Release][net40].bat b/build/[CI_Release][net40].bat deleted file mode 100644 index a4b35342..00000000 --- a/build/[CI_Release][net40].bat +++ /dev/null @@ -1,6 +0,0 @@ -call "%~dp0_config" - -REM # Configuration -set cfgname=CI_Release - -call "%~dp0_build" \ No newline at end of file diff --git a/build/[CI_Release][net45].bat b/build/[CI_Release][net45].bat deleted file mode 100644 index 7772f500..00000000 --- a/build/[CI_Release][net45].bat +++ /dev/null @@ -1,6 +0,0 @@ -call "%~dp0_config" - -REM # Configuration -set cfgname=CI_Release_net45 - -call "%~dp0_build" \ No newline at end of file diff --git a/build/_build.bat b/build/_build.bat deleted file mode 100644 index 0c99a4ba..00000000 --- a/build/_build.bat +++ /dev/null @@ -1,4 +0,0 @@ -cd "%~dp0..\\" -call "%~dp0_packages" "%_msbuild_exe%" -echo. -"%_msbuild_exe%" "%sln%" /verbosity:%level% /l:"packages\vsSBE.CI.MSBuild\bin\CI.MSBuild.dll" /m:%maxcpu% /t:%target% /p:Configuration=%cfgname% /p:Platform=%platform% \ No newline at end of file diff --git a/build/_config.bat b/build/_config.bat deleted file mode 100644 index 0713b5c4..00000000 --- a/build/_config.bat +++ /dev/null @@ -1,28 +0,0 @@ -@echo off - -REM # Version of used CI.MSBuild -REM # set CIM=1.6.1207 - -REM # Version of MSBuild tool by default -REM # set _msbuild=14.0 - -REM # MSBuild tools -set _msbuild_exe=%~dp0..\\tools\\msbuild.bat - -REM # Solution file by defualt -set sln=vsSolutionBuildEvent.sln - -REM # Target by default -set target=Rebuild - -REM # Maximum number of concurrent processes to use when building -set /a maxcpu=8 - -REM # Configuration by default -set cfgname=CI_Debug - -REM # Platform by default -set platform="Any CPU" - -REM # Verbosity level by default: q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic]. -set level=normal \ No newline at end of file diff --git a/build/_packages.bat b/build/_packages.bat deleted file mode 100644 index b4a853b6..00000000 --- a/build/_packages.bat +++ /dev/null @@ -1 +0,0 @@ -%1 "%cd%/.gnt/gnt.core" /p:ngpath="%cd%/packages" /p:ngconfig="%cd%/.gnt/packages.config|%cd%/vsSolutionBuildEvent/packages.config|%cd%/vsSolutionBuildEventTest/packages.config" /nologo /verbosity:m \ No newline at end of file diff --git a/build_[CI_Debug].bat b/build_[CI_Debug].bat deleted file mode 100644 index ff846a0a..00000000 --- a/build_[CI_Debug].bat +++ /dev/null @@ -1 +0,0 @@ -build\[CI_Debug][net40] \ No newline at end of file diff --git a/build_[CI_Release].bat b/build_[CI_Release].bat deleted file mode 100644 index 7f03fc8e..00000000 --- a/build_[CI_Release].bat +++ /dev/null @@ -1 +0,0 @@ -build\[CI_Release][net40] \ No newline at end of file diff --git a/tools/gnt.bat b/tools/gnt.bat index 7f1bfb9f..8f03b11e 100644 --- a/tools/gnt.bat +++ b/tools/gnt.bat @@ -1,34 +1,65 @@ @echo off -set gntcore=gnt.core -set tgnt=%temp%/%gntcore% - -for %%v in (14.0, 12.0, 15.0, 4.0, 3.5, 2.0) do ( - for /F "usebackq tokens=2* skip=2" %%a in ( - `reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\%%v" /v MSBuildToolsPath 2^> nul` - ) do if exist %%b ( - set msbuild="%%bmsbuild.exe" - goto found - ) +:: GetNuTool - Executable version +:: Copyright (c) 2015-2018 Denis Kuzmin [ entry.reg@gmail.com ] +:: https://github.com/3F/GetNuTool +set aa=gnt.core +set ab="%temp%\%random%%random%%aa%" +if "%~1"=="-unpack" goto ag +set ac=%* +if defined __p_call if defined ac set ac=%ac:^^=^% +set ad=%__p_msb% +if defined ad goto ah +if "%~1"=="-msbuild" goto ai +for %%v in (4.0, 14.0, 12.0, 3.5, 2.0) do ( +for /F "usebackq tokens=2* skip=2" %%a in ( +`reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\%%v" /v MSBuildToolsPath 2^> nul` +) do if exist %%b ( +set ad="%%~b\MSBuild.exe" +goto ah ) - -echo MSBuild was not found. Please use it manually like: ` "full_path_to_msbuild.exe" %gntcore% arguments ` 1>&2 - -goto exit - -:found - -%tgnt% -^ + + vsSolutionBuildEvent + GitHub3F + 0.12.10 + Event-Catcher with variety of advanced Actions to service projects, libraries, the build processes and processes at runtime from VisualStudio and MSBuild Tools. + 1033 + https://github.com/3F/vsSolutionBuildEvent + LICENSE.vsixinfo + https://github.com/3F/vsSolutionBuildEvent/wiki + https://github.com/3F/vsSolutionBuildEvent/blob/master/changelog.txt + Resources/Package.png + Resources/preview.png + false + + + Ultimate + Premium + Pro + IntegratedShell + + + Ultimate + Premium + Pro + IntegratedShell + + + Community + Enterprise + Ultimate + Premium + Pro + IntegratedShell + + + Community + Enterprise + Ultimate + Premium + Pro + IntegratedShell + + + Community + Enterprise + Ultimate + Premium + Pro + IntegratedShell + + + + + + + Visual Studio MPF + + + + |%CurrentProject%;PkgdefProjectOutputGroup| + + diff --git a/vsSolutionBuildEvent/sdk15.vsixmanifest b/vsSolutionBuildEvent/sdk15.vsixmanifest new file mode 100644 index 00000000..ebb29a3f --- /dev/null +++ b/vsSolutionBuildEvent/sdk15.vsixmanifest @@ -0,0 +1,30 @@ + + + + + + vsSolutionBuildEvent + Event-Catcher with variety of advanced Actions to service projects, libraries, the build processes and processes at runtime from VisualStudio and MSBuild Tools. + https://github.com/3F/vsSolutionBuildEvent + LICENSE.vsixinfo + https://github.com/3F/vsSolutionBuildEvent#readme + https://github.com/3F/vsSolutionBuildEvent/blob/master/changelog.txt + Resources\Package.png + Resources\preview.png + build, automation, DevOps, events, MSBuild, CI, Scripts, DevTools, zip, http, Compiler, shell, Productivity, CSharp, solution, files, ftp, Commands, projects, DTE, EnvDTE, cmd, NuGet, build automation, post-build, Versioning, Continuous Integration, batch, scripting, TeamCity, Version, Usability, logger, pre-build, Warnings, Errors, Output, AppVeyor, replace in files, targets, Azure DevOps, downloader, GetNuTool, 7z, 7zip, archiver + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/vsSolutionBuildEvent/source.extension.vsixmanifest b/vsSolutionBuildEvent/source.extension.vsixmanifest deleted file mode 100644 index c360ce38..00000000 --- a/vsSolutionBuildEvent/source.extension.vsixmanifest +++ /dev/null @@ -1,63 +0,0 @@ - - - - vsSolutionBuildEvent - github.com/3F - 0.12.10 - Event-Catcher with variety of advanced Actions for service of your projects and libraries, the build processes and processes at runtime from Visual Studio and MSBuild Tools. Flexible actions for all.. - 1033 - http://visualstudiogallery.msdn.microsoft.com/0d1dbfd7-ed8a-40af-ae39-281bfeca2334/ - Resources/vsixinfo - http://vssbe.r-eg.net - Resources/Package.png - Resources/preview.png - false - - - Ultimate - Premium - Pro - IntegratedShell - - - Ultimate - Premium - Pro - IntegratedShell - - - Community - Enterprise - Ultimate - Premium - Pro - IntegratedShell - - - Community - Enterprise - Ultimate - Premium - Pro - IntegratedShell - - - Community - Enterprise - Ultimate - Premium - Pro - IntegratedShell - - - - - - - Visual Studio MPF - - - - |%CurrentProject%;PkgdefProjectOutputGroup| - - diff --git a/vsSolutionBuildEvent/vsSolutionBuildEvent.csproj b/vsSolutionBuildEvent/vsSolutionBuildEvent.csproj index 111669f5..05b9fb93 100644 --- a/vsSolutionBuildEvent/vsSolutionBuildEvent.csproj +++ b/vsSolutionBuildEvent/vsSolutionBuildEvent.csproj @@ -1,7 +1,7 @@  - Debug + DBG_SDK10 AnyCPU 2.0 vsSolutionBuildEvent @@ -15,63 +15,60 @@ key.snk v4.0 net40 - NET_40 $(VisualStudioVersion) 4.0 1.1.0 + CS1591;IDE1006 + true - + true full false bin\Debug\ - $(DefineConstants);DEBUG;TRACE + NET_40;DEBUG;TRACE + AnyCPU prompt 4 false - + pdbonly true bin\Release\ - $(DefineConstants);CODE_ANALYSIS + NET_40;CODE_ANALYSIS + AnyCPU prompt 4 true false bin\Release\vsSolutionBuildEvent.XML - CS1591 - + true bin\Debug\ - $(DefineConstants);DEBUG;TRACE + NET_40;DEBUG;TRACE full AnyCPU prompt - false - false - False - - bin\Release\ - $(DefineConstants);CODE_ANALYSIS - true + pdbonly + true + bin\Release\ + NET_40;CODE_ANALYSIS AnyCPU - true prompt - false - false - False + 4 + true + false bin\Release\vsSolutionBuildEvent.XML - CS1591 - - v4.5 + + v4.6 net45 bin\Release\ - NET_45;CODE_ANALYSIS;CODE_ANALYSIS + VSSDK_15_AND_NEW;CODE_ANALYSIS;CODE_ANALYSIS true pdbonly AnyCPU @@ -79,51 +76,44 @@ true prompt MinimumRecommendedRules.ruleset - CS1591 bin\Release\vsSolutionBuildEvent.XML - - v4.5 + + v4.6 net45 true bin\Debug\ - NET_45;DEBUG;TRACE + VSSDK_15_AND_NEW;DEBUG;TRACE full AnyCPU 4 prompt MinimumRecommendedRules.ruleset - - v4.5 + + v4.6 net45 bin\Release\ - NET_45;CODE_ANALYSIS;CODE_ANALYSIS + VSSDK_15_AND_NEW;CODE_ANALYSIS;CODE_ANALYSIS true pdbonly AnyCPU + 4 true prompt MinimumRecommendedRules.ruleset - false - false - False - CS1591 bin\Release\vsSolutionBuildEvent.XML - - v4.5 + + v4.6 net45 true bin\Debug\ - NET_45;DEBUG;TRACE + VSSDK_15_AND_NEW;DEBUG;TRACE full AnyCPU prompt MinimumRecommendedRules.ruleset - false - false - False @@ -141,37 +131,6 @@ True - - - ..\packages\vsSBE.SDK.$(vsSBE_SDK)\lib\$(NetTargetVName)\Microsoft.VisualStudio.OLE.Interop.dll - True - - - False - ..\packages\vsSBE.SDK.$(vsSBE_SDK)\lib\$(NetTargetVName)\Microsoft.VisualStudio.Shell.10.0.dll - True - - - ..\packages\vsSBE.SDK.$(vsSBE_SDK)\lib\$(NetTargetVName)\Microsoft.VisualStudio.Shell.Immutable.10.0.dll - True - - - ..\packages\vsSBE.SDK.$(vsSBE_SDK)\lib\$(NetTargetVName)\Microsoft.VisualStudio.Shell.Interop.dll - True - - - False - ..\packages\vsSBE.SDK.$(vsSBE_SDK)\lib\$(NetTargetVName)\Microsoft.VisualStudio.Shell.Interop.10.0.dll - True - - - ..\packages\vsSBE.SDK.$(vsSBE_SDK)\lib\$(NetTargetVName)\Microsoft.VisualStudio.Shell.Interop.8.0.dll - True - - - ..\packages\vsSBE.SDK.$(vsSBE_SDK)\lib\$(NetTargetVName)\Microsoft.VisualStudio.Shell.Interop.9.0.dll - True - ..\packages\Newtonsoft.Json.9.0.1\lib\$(NetTargetVName)\Newtonsoft.Json.dll True @@ -203,6 +162,107 @@ + + + + + + ..\packages\Microsoft.Build.Framework.15.9.20\lib\net46\Microsoft.Build.Framework.dll + True + + + ..\packages\Microsoft.VisualStudio.OLE.Interop.7.10.6071\lib\Microsoft.VisualStudio.OLE.Interop.dll + True + + + ..\packages\Microsoft.VisualStudio.Shell.15.0.15.7.27703\lib\net45\Microsoft.VisualStudio.Shell.15.0.dll + + + ..\packages\Microsoft.VisualStudio.Shell.Framework.15.9.28307\lib\net45\Microsoft.VisualStudio.Shell.Framework.dll + + + ..\packages\Microsoft.VisualStudio.Shell.Interop.7.10.6072\lib\net11\Microsoft.VisualStudio.Shell.Interop.dll + True + + + ..\packages\Microsoft.VisualStudio.Shell.Interop.10.0.10.0.30320\lib\net20\Microsoft.VisualStudio.Shell.Interop.10.0.dll + True + True + + + ..\packages\Microsoft.VisualStudio.Shell.Interop.11.0.11.0.61031\lib\net20\Microsoft.VisualStudio.Shell.Interop.11.0.dll + True + + + ..\packages\Microsoft.VisualStudio.Shell.Interop.14.0.DesignTime.14.3.26929\lib\net20\Microsoft.VisualStudio.Shell.Interop.14.0.DesignTime.dll + True + + + ..\packages\Microsoft.VisualStudio.Shell.Interop.15.3.DesignTime.15.0.26929\lib\net20\Microsoft.VisualStudio.Shell.Interop.15.3.DesignTime.dll + True + + + ..\packages\Microsoft.VisualStudio.Shell.Interop.15.6.DesignTime.15.6.27413\lib\net20\Microsoft.VisualStudio.Shell.Interop.15.6.DesignTime.dll + True + + + ..\packages\Microsoft.VisualStudio.Shell.Interop.8.0.8.0.50728\lib\net11\Microsoft.VisualStudio.Shell.Interop.8.0.dll + True + + + ..\packages\Microsoft.VisualStudio.Shell.Interop.9.0.9.0.30730\lib\net11\Microsoft.VisualStudio.Shell.Interop.9.0.dll + True + + + ..\packages\Microsoft.VisualStudio.Threading.15.8.209\lib\net46\Microsoft.VisualStudio.Threading.dll + + + ..\packages\Microsoft.VisualStudio.Utilities.15.9.28307\lib\net46\Microsoft.VisualStudio.Utilities.dll + + + ..\packages\StreamJsonRpc.1.3.23\lib\net45\StreamJsonRpc.dll + + + + + + + + + + ..\packages\vsSBE.SDK.$(vsSBE_SDK)\lib\$(NetTargetVName)\Microsoft.VisualStudio.OLE.Interop.dll + True + + + False + ..\packages\vsSBE.SDK.$(vsSBE_SDK)\lib\$(NetTargetVName)\Microsoft.VisualStudio.Shell.10.0.dll + True + + + ..\packages\vsSBE.SDK.$(vsSBE_SDK)\lib\$(NetTargetVName)\Microsoft.VisualStudio.Shell.Immutable.10.0.dll + True + + + ..\packages\vsSBE.SDK.$(vsSBE_SDK)\lib\$(NetTargetVName)\Microsoft.VisualStudio.Shell.Interop.dll + True + + + False + ..\packages\vsSBE.SDK.$(vsSBE_SDK)\lib\$(NetTargetVName)\Microsoft.VisualStudio.Shell.Interop.10.0.dll + True + + + ..\packages\vsSBE.SDK.$(vsSBE_SDK)\lib\$(NetTargetVName)\Microsoft.VisualStudio.Shell.Interop.8.0.dll + True + + + ..\packages\vsSBE.SDK.$(vsSBE_SDK)\lib\$(NetTargetVName)\Microsoft.VisualStudio.Shell.Interop.9.0.dll + True + + + + + @@ -228,6 +288,9 @@ + + + @@ -563,7 +626,7 @@ True VSPackage.resx - + @@ -641,11 +704,28 @@ true + + Designer + + + Designer + + + Always true + Always + true + + + Always + true + + + Always true @@ -684,19 +764,18 @@ true - - Always - true - - + Menus.ctmenu Designer - + + Always + true + @@ -714,6 +793,7 @@ true + Disabled_VsixCompressTargets $([System.IO.Path]::GetFullPath( $(MSBuildProjectDirectory)\..\packages\VsixCompress.1.0.1\tools\vsix-compress.targets )) @@ -739,6 +819,26 @@ true + + + + + + + + + + + + + + This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + + + + + diff --git a/vsSolutionBuildEventTest/app.config b/vsSolutionBuildEventTest/app.config new file mode 100644 index 00000000..748042da --- /dev/null +++ b/vsSolutionBuildEventTest/app.config @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/vsSolutionBuildEventTest/packages.config b/vsSolutionBuildEventTest/packages.config index c181abb5..337fb725 100644 --- a/vsSolutionBuildEventTest/packages.config +++ b/vsSolutionBuildEventTest/packages.config @@ -2,5 +2,5 @@ - + \ No newline at end of file diff --git a/vsSolutionBuildEventTest/vsSolutionBuildEventTest.csproj b/vsSolutionBuildEventTest/vsSolutionBuildEventTest.csproj index 114a6989..c27361a1 100644 --- a/vsSolutionBuildEventTest/vsSolutionBuildEventTest.csproj +++ b/vsSolutionBuildEventTest/vsSolutionBuildEventTest.csproj @@ -1,7 +1,7 @@  - + - Debug + DBG_SDK10 AnyCPU 2.0 vsSolutionBuildEventTest @@ -12,53 +12,50 @@ vsSolutionBuildEventTest v4.0 net40 - NET_40 512 {3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 1.1.0 + 618;CS1591;IDE1006 - + true full false bin\Debug\ - $(DefineConstants);DEBUG;TRACE + NET_40;DEBUG;TRACE prompt AnyCPU 4 false - 618 - + pdbonly true bin\Release\ - $(DefineConstants) + NET_40 prompt AnyCPU 4 false - 618 - - v4.5 + + v4.6 net45 bin\Release\ - $(DefineConstants) + + true - 618 pdbonly AnyCPU prompt MinimumRecommendedRules.ruleset - - v4.5 + + v4.6 net45 true bin\Debug\ - $(DefineConstants);DEBUG;TRACE - 618 + DEBUG;TRACE full AnyCPU prompt @@ -135,6 +132,7 @@ +