Skip to content

Commit

Permalink
Updated vsSolutionBuildEvent 1.14 & MvsSln 2.5
Browse files Browse the repository at this point in the history
Closes #120 and updates issue templates due to modern github type
  • Loading branch information
3F committed Oct 27, 2019
1 parent 4db7142 commit 2c90b30
Show file tree
Hide file tree
Showing 11 changed files with 139 additions and 166 deletions.
49 changes: 49 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
name: Bug Report
about: Found error or incorrect behavior.
labels: bug
---

How to reproduce:

...


* `-version`:
* `-build-info`:
* Full command to Manager:
* Project type:
* Environment ( VS, MSBuild, ...):

Used configuration:

...

Optional Project files / Samples:

...

log:

* [{attachment}](https://help.github.com/articles/file-attachments-on-issues-and-pull-requests/) ...



-----------

*(Remove this section after reading. Click `Preview` tab for convenience)*

## ! Important

1. **Try to isolate** problem via very simple code. Any project-sample would be really useful for quick inspection!
2. Log data. To set **detailed** or **diagnostics** level:
* For VS IDE: `Tools` - `Options` - `Project and Solutions` - `Build and Run` - *MSBuild project build verbosity.*
* For msbuild tools: `/v:diag`:

```
msbuild <your.sln> /t:Rebuild /m:4 /v:diag > build.log
```
3. Make sure that you have all rights to publish any of your (or company) data (attached src, log, etc). Responsibility is solely on you.
4. **Do not** put inside message any very long text data ( ~10 Kb+ time for attachments ). Means only as file (text-based, or zip, etc). Because of notifications through email. It's really ... [100K+](https://github.com/3F/DllExport/issues/71)
5. **Try to use** only [GitHub for your attachments and screenshots](https://help.github.com/articles/file-attachments-on-issues-and-pull-requests/) instead of other places. It's free, it's enough.
6. Please try to use [**basic formatting** for your code examples](https://help.github.com/articles/creating-and-highlighting-code-blocks/), to avoid code dancing 🕺 across the page.
16 changes: 16 additions & 0 deletions .github/ISSUE_TEMPLATE/other.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
name: Other
about: ''
---

. . .

-----------

*(Remove this section after reading. Click `Preview` tab for convenience)*

## ! Important

1. **Try to use** only [GitHub for your attachments and screenshots](https://help.github.com/articles/file-attachments-on-issues-and-pull-requests/) instead of other places. It's free, it's enough.
2. **Do not** put inside message any very long text data ( ~ 10 Kb+ time for attachments ). Means only as file (text-based, or zip, etc). Because we're receiving this notification through email, so it's really ... [100K+](https://github.com/3F/DllExport/issues/71)
3. Please try to use [**basic formatting** for your code examples](https://help.github.com/articles/creating-and-highlighting-code-blocks/), to avoid code dancing 🕺 across the page.
24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: Question
about: Ask us.
labels: question
---

. . .

-----------

*(Remove this section after reading. Click `Preview` tab for convenience)*

## ! Important

1. **Please** use our [wiki](https://github.com/3F/DllExport/wiki) first. +Available [**Q&A** list](https://github.com/3F/DllExport/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3Aquestion).

2. Please try to use MSDN, stackoverflow, and other relevant places for understanding common practice with P/Invoke, scalar & unmanaged native types, marshaling, .net-domains, multithreading, ... ~something other. Because this is not directly related to our project to teach you programming. We can try to help you anyway, but please have a *conscience.*

### If you're ready to ask something

1. **Try to use** only [GitHub for your attachments and screenshots](https://help.github.com/articles/file-attachments-on-issues-and-pull-requests/) instead of other places. It's free, it's enough.
2. **Do not** put inside message any very long text data ( ~ 10 Kb+ time for attachments ). Means only as file (text-based, or zip, etc). Because we're receiving this notification through email, so it's really ... [100K+](https://github.com/3F/DllExport/issues/71)
3. Please try to use [**basic formatting** for your code examples](https://help.github.com/articles/creating-and-highlighting-code-blocks/), to avoid code dancing 🕺 across the page.

44 changes: 0 additions & 44 deletions .github/issue_template.md

This file was deleted.

40 changes: 26 additions & 14 deletions .vssbe
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"Enabled": true
},
{
"ClassName": "OWPComponent",
"ClassName": "OwpComponent",
"Enabled": true
},
{
Expand All @@ -39,7 +39,7 @@
"Enabled": true
},
{
"ClassName": "DTEComponent",
"ClassName": "DteComponent",
"Enabled": true
},
{
Expand All @@ -59,7 +59,7 @@
"Enabled": true
},
{
"ClassName": "MSBuildComponent",
"ClassName": "EvMSBuildComponent",
"Enabled": true
},
{
Expand Down Expand Up @@ -147,24 +147,36 @@
"Mode": {
"$type": "net.r_eg.vsSBE.Events.ModeScript, vsSolutionBuildEvent",
"Type": "Script",
"Command": "#[$(moduleGetNuTool = \"GetNuTool/gnt.sln\")]\n\n#[( #[IO exists.file(\"$(moduleGetNuTool)\")] )\n{ \n ##[File scall(\"submodules.bat\", \"$(moduleGetNuTool)\", 400)]\n #[File call(\"submodules.bat\", \"$(moduleGetNuTool)\", 2000)]\n}\nelse{\n #[File call(\"submodules.bat\", \"$(moduleGetNuTool)\", 2000)]\n}]\n\n#[\" Packages \"]\n\n#[( !(#[IO exists.directory(\"packages\")]) || !(#[IO exists.directory(\"$(pMvsSln)/packages\")]) )\n{\n #[File call(\"packages_restore.cmd\", \"\", 2000)]\n}]",
"Command": "#[( !(#[IO exists.file(\"$(pGetNuTool)/gnt.sln\")]) )\n{\n #[File call(\"git\", \"submodule update --init --recursive GetNuTool\", 1000)]\n}]\n\n#[( !(#[IO exists.file(\"$(pMvsSln)/MvsSln.sln\")]) )\n{\n #[File call(\"git\", \"submodule update --init --recursive MvsSln\", 1000)]\n}]\n\n#[( !(#[IO exists.file(\"$(phMSBuild)/hMSBuild.sln\")]) )\n{\n #[File call(\"git\", \"submodule update --init --recursive hMSBuild\", 1000)]\n}]\n\nTODO: option for expensive coreclr\n\n\n#[\" Packages \"]\n\n#[( !(#[IO exists.file(\"packages/__checked\")]) )\n{\n #[File call(\"tools\\hmsbuild.bat\", \"-t:restore /v:q /nologo /p:Configuration=$(Configuration) /p:Platform=\\\"Any CPU\\\"\", 1000)]\n \n #[NuGet gnt.raw(\"/p:ngconfig=\\\"packages.config;PeViewer/packages.config;NSBin/packages.config\\\" /nologo /v:m /m:4\")]\n \n #[IO copy.directory(\"\", \"packages/\", true)]\n #[File write(\"packages/__checked\"): ]\n}]",
"Command__": [
"#[$(moduleGetNuTool = \"GetNuTool/gnt.sln\")]",
"#[( !(#[IO exists.file(\"$(pGetNuTool)/gnt.sln\")]) )",
"{",
" #[File call(\"git\", \"submodule update --init --recursive GetNuTool\", 1000)]",
"}]",
"",
"#[( #[IO exists.file(\"$(moduleGetNuTool)\")] )",
"{ ",
" ##[File scall(\"submodules.bat\", \"$(moduleGetNuTool)\", 400)]",
" #[File call(\"submodules.bat\", \"$(moduleGetNuTool)\", 2000)]",
"}",
"else{",
" #[File call(\"submodules.bat\", \"$(moduleGetNuTool)\", 2000)]",
"#[( !(#[IO exists.file(\"$(pMvsSln)/MvsSln.sln\")]) )",
"{",
" #[File call(\"git\", \"submodule update --init --recursive MvsSln\", 1000)]",
"}]",
"",
"#[( !(#[IO exists.file(\"$(phMSBuild)/hMSBuild.sln\")]) )",
"{",
" #[File call(\"git\", \"submodule update --init --recursive hMSBuild\", 1000)]",
"}]",
"",
"TODO: option for expensive coreclr",
"",
"",
"#[\" Packages \"]",
"",
"#[( !(#[IO exists.directory(\"packages\")]) || !(#[IO exists.directory(\"$(pMvsSln)/packages\")]) )",
"#[( !(#[IO exists.file(\"packages/__checked\")]) )",
"{",
" #[File call(\"packages_restore.cmd\", \"\", 2000)]",
" #[File call(\"tools\\hmsbuild.bat\", \"-t:restore /v:q /nologo /p:Configuration=$(Configuration) /p:Platform=\\\"Any CPU\\\"\", 1000)]",
" ",
" #[NuGet gnt.raw(\"/p:ngconfig=\\\"packages.config;PeViewer/packages.config;NSBin/packages.config\\\" /nologo /v:m /m:4\")]",
" ",
" #[IO copy.directory(\"\", \"packages/\", true)]",
" #[File write(\"packages/__checked\"): ]",
"}]"
]
}
Expand Down
19 changes: 13 additions & 6 deletions 3rd-party.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,16 @@ DllExport [ github.com/3F/DllExport ]
* https://github.com/3F/GetNuTool
* https://github.com/3F/hMSBuild

## Maintaining of this project also includes the following tools:

* vsSolutionBuildEvent /+ CI.MSBuild [ github.com/3F/vsSolutionBuildEvent ]
* GetNuTool [ github.com/3F/GetNuTool ]
* hMSBuild [ github.com/3F/hMSBuild ]

## Dev Dependencies includes the following tools for src:

* vsSolutionBuildEvent
https://github.com/3F/vsSolutionBuildEvent

* MSTest Framework
https://github.com/microsoft/testfx

* hMSBuild
https://github.com/3F/hMSBuild

* GetNuTool
https://github.com/3F/GetNuTool
2 changes: 1 addition & 1 deletion MvsSln
Submodule MvsSln updated 53 files
+7 −0 .gitattributes
+3 −0 .gitignore
+1 −1 .version
+159 −58 .vssbe
+33 −0 3rd-party.txt
+5 −9 MvsSln/Core/ConfigItem.cs
+23 −0 MvsSln/Core/IXProject.cs
+6 −13 MvsSln/Core/ObjHandlers/HandlerValue.cs
+10 −17 MvsSln/Core/ProjectItem.cs
+3 −2 MvsSln/Core/ProjectReferences.cs
+8 −22 MvsSln/Core/RawText.cs
+5 −19 MvsSln/Core/RefType.cs
+1 −1 MvsSln/Core/SlnHandlers/LProjectConfigurationPlatforms.cs
+2 −12 MvsSln/Core/SlnHandlers/LProjectDependencies.cs
+3 −10 MvsSln/Core/SolutionFolder.cs
+74 −114 MvsSln/Core/XProject.cs
+3 −0 MvsSln/EnvDTE/DProject.cs
+1 −0 MvsSln/EnvDTE/DynDteProject.cs
+2 −2 MvsSln/Extensions/CollectionExtension.cs
+2 −2 MvsSln/Extensions/MathExtension.cs
+13 −0 MvsSln/InternalsVisibleTo.cs
+96 −141 MvsSln/MvsSln.csproj
+3 −3 MvsSln/MvsSlnVersion.cs
+0 −44 MvsSln/Properties/AssemblyInfo.cs
+1 −1 MvsSln/Sln.cs
+55 −56 MvsSlnTest/Core/ConfigItemTest.cs
+7 −8 MvsSlnTest/Core/ObjHandlers/WExtensibilityGlobalsTest.cs
+10 −11 MvsSlnTest/Core/ObjHandlers/WNestedProjectsTest.cs
+4 −5 MvsSlnTest/Core/ObjHandlers/WProjectConfigurationPlatformsTest.cs
+4 −5 MvsSlnTest/Core/ObjHandlers/WProjectSolutionItemsTest.cs
+21 −15 MvsSlnTest/Core/ObjHandlers/WProjectTest.cs
+6 −6 MvsSlnTest/Core/ObjHandlers/WSolutionConfigurationPlatformsTest.cs
+5 −6 MvsSlnTest/Core/ObjHandlers/WVisualStudioVersionTest.cs
+46 −47 MvsSlnTest/Core/ProjectItemTest.cs
+38 −39 MvsSlnTest/Core/SlnHandlers/LProjectDependenciesTest.cs
+19 −20 MvsSlnTest/Core/SlnHeaderTest.cs
+14 −13 MvsSlnTest/Core/SlnWriterTest.cs
+69 −71 MvsSlnTest/Core/SolutionFolderTest.cs
+29 −30 MvsSlnTest/Core/SynchSubscribersTest.cs
+16 −17 MvsSlnTest/Core/XProjectTest.cs
+83 −84 MvsSlnTest/Extensions/StringExtensionTest.cs
+29 −103 MvsSlnTest/MvsSlnTest.csproj
+3 −3 MvsSlnTest/PrjSamplesResource.Designer.cs
+1 −1 MvsSlnTest/PrjSamplesResource.resx
+14 −15 MvsSlnTest/Projects/ItemTest.cs
+0 −20 MvsSlnTest/Properties/AssemblyInfo.cs
+2 −2 MvsSlnTest/SlnSamplesResource.Designer.cs
+290 −291 MvsSlnTest/SlnTest.cs
+0 −5 MvsSlnTest/packages.config
+5 −6 Readme.md
+4 −5 build.bat
+36 −0 changelog.txt
+1 −1 packages.config
18 changes: 9 additions & 9 deletions build.bat
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
@echo off

set reltype=%1
set cimdll=packages\vsSBE.CI.MSBuild\bin\CI.MSBuild.dll
set _msbuild=tools\hMSBuild
set cim=packages\vsSolutionBuildEvent\cim.cmd
set _gnt=tools/gnt

set reltype=%1
if "%reltype%"=="" (
set reltype=Release
)

:found

call packages_restore.cmd || goto err
call %_gnt% /p:wpath="%cd%" /p:ngconfig="packages.config" /nologo /v:m /m:4 || goto err
call %cim% "DllExport.sln" /v:m /m:4 /p:Configuration="%reltype%" || goto err

call %_msbuild% -notamd64 "DllExport.sln" /v:m /l:"%cimdll%" /m:4 /t:Build /p:Configuration="%reltype%" || goto err

exit /B 0
goto exit

:err

echo. Build failed. 1>&2
exit /B 1

:exit
exit /B 0
2 changes: 1 addition & 1 deletion packages.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="vsSBE.CI.MSBuild" version="1.6.12010" output="vsSBE.CI.MSBuild" />
<package id="vsSolutionBuildEvent" version="1.14.0" output="vsSolutionBuildEvent" />
<package id="ILAsm" version="4.5.1.1" output="ILAsm" />
</packages>
38 changes: 0 additions & 38 deletions packages_restore.cmd

This file was deleted.

53 changes: 0 additions & 53 deletions submodules.bat

This file was deleted.

0 comments on commit 2c90b30

Please sign in to comment.