Skip to content

Commit 99a7df8

Browse files
committed
README.md notes on building and testing; removed bat file to generate NuGet packages (deprecated)
1 parent 84ec9c1 commit 99a7df8

File tree

2 files changed

+44
-6
lines changed

2 files changed

+44
-6
lines changed

Lambda2Js/nuget.create.2015.bat

-6
This file was deleted.

README.md

+44
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,47 @@ Developing custom plugins
5555
--------
5656

5757
You can develop and use some prebuilt plugins. See the [readme.md in the Plugins folder](https://github.com/gearz-lab/lambda2js/tree/master/Lambda2Js/Plugins).
58+
59+
Building and testing
60+
--------------------
61+
62+
***ATENTION!*** Please, run the **ProjectsGenerator**
63+
before doing any of these:
64+
65+
- build the signed assembly
66+
- running tests for specific frameworks
67+
68+
Due to current Visual Studio limitations, I had to create
69+
a project generator to create some of the `csproj` files:
70+
71+
- **Lambda2Js.Signed.csproj** is generated using the
72+
`Lambda2Js.csproj` as it's template. It will copy the
73+
package version to the FileVersion and to the
74+
AssemblyVersion fields to keep them consistent.
75+
Also, it adds the `".Signed"` string where appropriate
76+
in file names and in project name, and finally it
77+
includes a reference to the snk file.
78+
79+
- **Lambda2Js.Tests.$(TargetFramework).csproj** are
80+
generated from `Lambda2Js.Tests.csproj`. That is needed
81+
because this project is a multitargeted test project,
82+
and Visual Studio cannot see the tests inside after
83+
compiling it... so what I dis was: create copy projects
84+
that have only one target framework for each of the
85+
possible targets.
86+
87+
**Testing**
88+
89+
To test support on the .Net 4.0, you need to run the
90+
`Test.Net-v4.0.csproj` because this framework version
91+
does not support the native test attributes to do
92+
automatic testing.
93+
94+
To test other framework versions, please, take a
95+
look at the `TargetedTests` solution folder. In that
96+
folder you will find all the tests. Unload all of them,
97+
but keep the framework version you want to test,
98+
then build it. Visual Studio will see the newly built
99+
tests and will list them. If the other frameworks test
100+
projects are not unloaded, Visual Studio may or may
101+
not list them.

0 commit comments

Comments
 (0)