Skip to content

Commit c587e72

Browse files
committed
added a readme.txt for first installation
1 parent 6747dd3 commit c587e72

File tree

4 files changed

+55
-3
lines changed

4 files changed

+55
-3
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/output/
2+
13
## Ignore Visual Studio temporary files, build results, and
24
## files generated by popular Visual Studio add-ons.
35

src/T4Immutable-portable/T4Immutable-portable.nuspec

+16-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0"?>
22
<package >
3-
<metadata minClientVersion="3.4">
3+
<metadata>
44
<id>T4Immutable</id>
5-
<version>1.3.0-alpha3</version>
5+
<version>1.3.0-alpha9</version>
66
<title>T4Immutable</title>
77
<authors>Javier González Garcés</authors>
88
<owners>xaviergonz</owners>
@@ -14,12 +14,25 @@
1414
<copyright>Copyright © 2016 Javier González Garcés</copyright>
1515
<tags>t4 immutable codegen</tags>
1616
<dependencies>
17-
<!--<dependency id="Microsoft.CSharp" version="4.0.0"/>-->
17+
<!-- apparently not needed?
18+
<dependency id="Microsoft.CSharp" version="4.0.0"/>
19+
-->
1820
</dependencies>
21+
<!-- this apparently does not work as intended for project.json files
22+
<contentFiles>
23+
<files include="**/*.cs_" buildAction="None"/>
24+
<files include="**/*.ttinclude" buildAction="None"/>
25+
<files include="**/*.t4" buildAction="Content"/>
26+
</contentFiles>
27+
-->
1928
</metadata>
2029
<files>
2130
<file src="bin\Release\T4Immutable.dll" target="lib\netstandard1.1\T4Immutable.dll" />
2231
<file src="bin\Release\T4Immutable.xml" target="lib\netstandard1.1\T4Immutable.xml" />
32+
<file src="..\readme.txt" target=""/>
2333
<file src="..\content\**\*.*" target="content"/>
34+
<!-- no point since this does not copy the files to the solution
35+
<file src="..\content\**\*.*" target="contentFiles\any\any"/>
36+
-->
2437
</files>
2538
</package>

src/T4Immutable.sln

+5
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "T4Immutable", "T4Immutable"
2020
EndProject
2121
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "T4Immutable-portable", "T4Immutable-portable\T4Immutable-portable.csproj", "{C569B582-2D4F-45ED-964B-412E032A37C4}"
2222
EndProject
23+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{6E1256F3-7EC3-4676-9CE5-7D6379A12D86}"
24+
ProjectSection(SolutionItems) = preProject
25+
readme.txt = readme.txt
26+
EndProjectSection
27+
EndProject
2328
Global
2429
GlobalSection(SolutionConfigurationPlatforms) = preSolution
2530
Debug|Any CPU = Debug|Any CPU

src/readme.txt

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
===========
2+
T4Immutable
3+
===========
4+
5+
Note for old-style (.NET Framework)
6+
-----------------------------------
7+
8+
Please run the generator by using "Build - Transform All T4 Templates".
9+
You should do this after each time you update this nuget package.
10+
11+
12+
Note for new-style projects (.NET Core, .NET Standard, UWP, Portable Class Libraries...)
13+
----------------------------------------------------------------------------------------
14+
15+
Since right now NuGet does not support copying files to the project itself you will need
16+
to follow the next steps:
17+
18+
1. Create a folder in the root of your project named "T4Immutable"
19+
2. Download the T4Immutable sources at
20+
https://github.com/xaviergonz/T4Immutable/archive/master.zip
21+
3. Extract the folder src/content/T4Immutable (inside the ZIP) to the T4Immutable folder
22+
of your project
23+
24+
"Build - Transform All T4 Templates" won't work, so you will need to right click the
25+
file "T4Immutable/T4Immutable.tt" and click on "Run custom tool" whenever you want to
26+
regenerate your templates.
27+
28+
You will need to do 2 and 3 everytime you update this nuget package.
29+
30+
As soon as NuGet gets better support for this (or someone tells me how to do it) for
31+
new-style projects there will be an update to do this automatically like it is done for
32+
standard .NET projects.

0 commit comments

Comments
 (0)