Skip to content

Commit 5454102

Browse files
authored
Change license to MIT-0 (#615)
* Change license from MIT to MIT-0 and fix nuget warning The difference is to remove the requirement that the license must be copied with all copies of the work. I don't want to impose this on anyone wanting to take inspiration from the code. Use <licenseExpression> instead of the deprecated <licenseUrl> to fix NuGet warning when packing nugets. https://github.com/dotnet/docs/blob/master/docs/core/tools/csproj.md#packagelicenseexpression * Update copyright header of all .ps1 files * Regen code with new copyright header * Replace headers in non-generated code * R#: Update default file headers * Remove duplicate UnitsNet.csproj, in WRC folder * Update assembly copyrights * Update nugets' copyright to be consistent * Update Tools\NuGet.exe To add support for new licenseExpression field in nuspec. * Fix license expression in WRC nuspec
1 parent 39ce172 commit 5454102

File tree

596 files changed

+1320
-12020
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

596 files changed

+1320
-12020
lines changed

LICENSE

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,13 @@
1-
The MIT License (MIT)
1+
MIT No Attribution
22

3-
Copyright (c) 2013 Initial Force
3+
Copyright 2013 Andreas Gullberg Larsen ([email protected]).
44

5-
Permission is hereby granted, free of charge, to any person obtaining a copy of
6-
this software and associated documentation files (the "Software"), to deal in
7-
the Software without restriction, including without limitation the rights to
8-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9-
the Software, and to permit persons to whom the Software is furnished to do so,
10-
subject to the following conditions:
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
6+
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
7+
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8+
persons to whom the Software is furnished to do so.
119

12-
The above copyright notice and this permission notice shall be included in all
13-
copies or substantial portions of the Software.
14-
15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17-
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18-
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19-
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
10+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
11+
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
12+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
13+
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

UnitsNet.Serialization.JsonNet.Tests/UnitsNetJsonConverterTests.cs

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,5 @@
1-
// Copyright (c) 2013 Andreas Gullberg Larsen ([email protected]).
2-
// https://github.com/angularsen/UnitsNet
3-
//
4-
// Permission is hereby granted, free of charge, to any person obtaining a copy
5-
// of this software and associated documentation files (the "Software"), to deal
6-
// in the Software without restriction, including without limitation the rights
7-
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8-
// copies of the Software, and to permit persons to whom the Software is
9-
// furnished to do so, subject to the following conditions:
10-
//
11-
// The above copyright notice and this permission notice shall be included in
12-
// all copies or substantial portions of the Software.
13-
//
14-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15-
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16-
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17-
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18-
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19-
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20-
// THE SOFTWARE.
1+
// Licensed under MIT No Attribution, see LICENSE file at the root.
2+
// Copyright 2013 Andreas Gullberg Larsen ([email protected]). Maintained at https://github.com/angularsen/UnitsNet.
213

224
using System;
235
using Newtonsoft.Json;

UnitsNet.Serialization.JsonNet/UnitsNet.Serialization.JsonNet.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
<Authors>Andreas Gullberg Larsen</Authors>
77
<Title>Units.NET Serialization with Json.NET</Title>
88
<Description>A helper library for serializing and deserializing types in Units.NET using Json.NET.</Description>
9-
<Copyright>Copyright (c) 2015 Andreas Gullberg Larsen</Copyright>
9+
<Copyright>Copyright 2013 Andreas Gullberg Larsen ([email protected]).</Copyright>
1010
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1111
<RepositoryUrl>https://github.com/angularsen/UnitsNet</RepositoryUrl>
1212
<PackageIconUrl>https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png</PackageIconUrl>
1313
<PackageProjectUrl>https://github.com/angularsen/UnitsNet</PackageProjectUrl>
14-
<PackageLicenseUrl>https://github.com/angularsen/UnitsNet/blob/master/LICENSE</PackageLicenseUrl>
14+
<PackageLicenseExpression>MIT-0</PackageLicenseExpression>
1515
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
1616
<PackageTags>unit units measurement json Json.NET Newtonsoft serialize deserialize serialization deserialization</PackageTags>
1717
</PropertyGroup>

UnitsNet.Serialization.JsonNet/UnitsNetJsonConverter.cs

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,5 @@
1-
// Copyright (c) 2013 Andreas Gullberg Larsen ([email protected]).
2-
// https://github.com/angularsen/UnitsNet
3-
//
4-
// Permission is hereby granted, free of charge, to any person obtaining a copy
5-
// of this software and associated documentation files (the "Software"), to deal
6-
// in the Software without restriction, including without limitation the rights
7-
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8-
// copies of the Software, and to permit persons to whom the Software is
9-
// furnished to do so, subject to the following conditions:
10-
//
11-
// The above copyright notice and this permission notice shall be included in
12-
// all copies or substantial portions of the Software.
13-
//
14-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15-
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16-
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17-
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18-
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19-
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20-
// THE SOFTWARE.
1+
// Licensed under MIT No Attribution, see LICENSE file at the root.
2+
// Copyright 2013 Andreas Gullberg Larsen ([email protected]). Maintained at https://github.com/angularsen/UnitsNet.
213

224
using System;
235
using System.Linq;

UnitsNet.Tests/AssemblyAttributeTests.cs

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,5 @@
1-
// Copyright (c) 2013 Andreas Gullberg Larsen ([email protected]).
2-
// https://github.com/angularsen/UnitsNet
3-
//
4-
// Permission is hereby granted, free of charge, to any person obtaining a copy
5-
// of this software and associated documentation files (the "Software"), to deal
6-
// in the Software without restriction, including without limitation the rights
7-
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8-
// copies of the Software, and to permit persons to whom the Software is
9-
// furnished to do so, subject to the following conditions:
10-
//
11-
// The above copyright notice and this permission notice shall be included in
12-
// all copies or substantial portions of the Software.
13-
//
14-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15-
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16-
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17-
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18-
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19-
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20-
// THE SOFTWARE.
1+
// Licensed under MIT No Attribution, see LICENSE file at the root.
2+
// Copyright 2013 Andreas Gullberg Larsen ([email protected]). Maintained at https://github.com/angularsen/UnitsNet.
213

224
using System;
235
using System.Linq;

UnitsNet.Tests/BaseUnitsTests.cs

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,5 @@
1-
// Copyright (c) 2013 Andreas Gullberg Larsen ([email protected]).
2-
// https://github.com/angularsen/UnitsNet
3-
//
4-
// Permission is hereby granted, free of charge, to any person obtaining a copy
5-
// of this software and associated documentation files (the "Software"), to deal
6-
// in the Software without restriction, including without limitation the rights
7-
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8-
// copies of the Software, and to permit persons to whom the Software is
9-
// furnished to do so, subject to the following conditions:
10-
//
11-
// The above copyright notice and this permission notice shall be included in
12-
// all copies or substantial portions of the Software.
13-
//
14-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15-
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16-
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17-
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18-
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19-
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20-
// THE SOFTWARE.
1+
// Licensed under MIT No Attribution, see LICENSE file at the root.
2+
// Copyright 2013 Andreas Gullberg Larsen ([email protected]). Maintained at https://github.com/angularsen/UnitsNet.
213

224
using System;
235
using UnitsNet.Units;

UnitsNet.Tests/CustomCode/AccelerationTests.cs

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,5 @@
1-
// Copyright (c) 2013 Andreas Gullberg Larsen ([email protected]).
2-
// https://github.com/angularsen/UnitsNet
3-
//
4-
// Permission is hereby granted, free of charge, to any person obtaining a copy
5-
// of this software and associated documentation files (the "Software"), to deal
6-
// in the Software without restriction, including without limitation the rights
7-
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8-
// copies of the Software, and to permit persons to whom the Software is
9-
// furnished to do so, subject to the following conditions:
10-
//
11-
// The above copyright notice and this permission notice shall be included in
12-
// all copies or substantial portions of the Software.
13-
//
14-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15-
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16-
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17-
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18-
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19-
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20-
// THE SOFTWARE.
1+
// Licensed under MIT No Attribution, see LICENSE file at the root.
2+
// Copyright 2013 Andreas Gullberg Larsen ([email protected]). Maintained at https://github.com/angularsen/UnitsNet.
213

224
using Xunit;
235

UnitsNet.Tests/CustomCode/AmountOfSubstanceTests.cs

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
//------------------------------------------------------------------------------
22
// <auto-generated>
33
// This code was generated (once) by \generate-code.bat, but will not be
4-
// regenerated when it already exists. The purpose of creating this file is to make
4+
// regenerated when it already exists. The purpose of creating this file is to make
55
// it easier to remember to implement all the unit conversion test cases.
6-
//
6+
//
77
// Whenever a new unit is added to this quantity and \generate-code.bat is run,
88
// the base test class will get a new abstract property and cause a compile error
99
// in this derived class, reminding the developer to implement the test case
@@ -17,26 +17,8 @@
1717
// </auto-generated>
1818
//------------------------------------------------------------------------------
1919

20-
// Copyright (c) 2013 Andreas Gullberg Larsen ([email protected]).
21-
// https://github.com/angularsen/UnitsNet
22-
//
23-
// Permission is hereby granted, free of charge, to any person obtaining a copy
24-
// of this software and associated documentation files (the "Software"), to deal
25-
// in the Software without restriction, including without limitation the rights
26-
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
27-
// copies of the Software, and to permit persons to whom the Software is
28-
// furnished to do so, subject to the following conditions:
29-
//
30-
// The above copyright notice and this permission notice shall be included in
31-
// all copies or substantial portions of the Software.
32-
//
33-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
34-
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
35-
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
36-
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
37-
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
38-
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
39-
// THE SOFTWARE.
20+
// Licensed under MIT No Attribution, see LICENSE file at the root.
21+
// Copyright 2013 Andreas Gullberg Larsen ([email protected]). Maintained at https://github.com/angularsen/UnitsNet.
4022

4123
using System;
4224

UnitsNet.Tests/CustomCode/AmplitudeRatioTests.cs

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,5 @@
1-
// Copyright (c) 2013 Andreas Gullberg Larsen ([email protected]).
2-
// https://github.com/angularsen/UnitsNet
3-
//
4-
// Permission is hereby granted, free of charge, to any person obtaining a copy
5-
// of this software and associated documentation files (the "Software"), to deal
6-
// in the Software without restriction, including without limitation the rights
7-
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8-
// copies of the Software, and to permit persons to whom the Software is
9-
// furnished to do so, subject to the following conditions:
10-
//
11-
// The above copyright notice and this permission notice shall be included in
12-
// all copies or substantial portions of the Software.
13-
//
14-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15-
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16-
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17-
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18-
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19-
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20-
// THE SOFTWARE.
1+
// Licensed under MIT No Attribution, see LICENSE file at the root.
2+
// Copyright 2013 Andreas Gullberg Larsen ([email protected]). Maintained at https://github.com/angularsen/UnitsNet.
213

224
using System;
235
using Xunit;

UnitsNet.Tests/CustomCode/AngleTests.cs

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,5 @@
1-
// Copyright (c) 2013 Andreas Gullberg Larsen ([email protected]).
2-
// https://github.com/angularsen/UnitsNet
3-
//
4-
// Permission is hereby granted, free of charge, to any person obtaining a copy
5-
// of this software and associated documentation files (the "Software"), to deal
6-
// in the Software without restriction, including without limitation the rights
7-
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8-
// copies of the Software, and to permit persons to whom the Software is
9-
// furnished to do so, subject to the following conditions:
10-
//
11-
// The above copyright notice and this permission notice shall be included in
12-
// all copies or substantial portions of the Software.
13-
//
14-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15-
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16-
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17-
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18-
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19-
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20-
// THE SOFTWARE.
1+
// Licensed under MIT No Attribution, see LICENSE file at the root.
2+
// Copyright 2013 Andreas Gullberg Larsen ([email protected]). Maintained at https://github.com/angularsen/UnitsNet.
213

224
using System;
235
using Xunit;

0 commit comments

Comments
 (0)