-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPreflight.Unattend.csproj
More file actions
53 lines (45 loc) · 2.3 KB
/
Preflight.Unattend.csproj
File metadata and controls
53 lines (45 loc) · 2.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<Project Sdk="Microsoft.NET.Sdk">
<!--
Vendored from cschneegans/unattend-generator (MIT). See LICENSE.txt and
../../NOTICE for attribution. Keep source edits minimal so we can diff
cleanly against upstream when syncing. Behavioral changes belong in the
consumer (Preflight.App) via the adapter layer.
-->
<PropertyGroup>
<RootNamespace>Schneegans.Unattend</RootNamespace>
<!-- AssemblyName MUST stay UnattendGenerator. Bloatware.json embeds
Newtonsoft $type metadata like "Schneegans.Unattend.PackageBloatwareStep,
UnattendGenerator", and the deserializer resolves that assembly by name
at runtime. Changing it breaks Bloatware deserialization and blows up
the generator's constructor. -->
<AssemblyName>UnattendGenerator</AssemblyName>
<!-- Upstream targets net8/net9; we keep the repo-wide net10.0 to avoid a
multi-TFM matrix. Directory.Build.props already sets TargetFramework. -->
<!-- Upstream is not warning-clean under our strict analyzers; relax here
only. This keeps the file-level diff against upstream small and lets
us track upstream releases without fighting the analyzer. -->
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<EnforceCodeStyleInBuild>false</EnforceCodeStyleInBuild>
<AnalysisLevel>none</AnalysisLevel>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
</PropertyGroup>
<!-- Example.cs declares a public static Main() as a stand-alone usage
sample. Excluded from compilation so it can't collide with a host
executable's entry point, and kept as None so the example stays
visible to anyone browsing the source. -->
<ItemGroup>
<Compile Remove="Example.cs" />
</ItemGroup>
<!-- All files under resource\ are embedded. Util.StringFromResource() looks
them up by name relative to the Schneegans.Unattend namespace, so the
default "{RootNamespace}.resource.{file}" logical naming lines up
exactly. The glob covers JSON data tables, XSD schemas, and template
PowerShell / VBScript / XML snippets the library emits. -->
<ItemGroup>
<None Remove="resource\**\*" />
<EmbeddedResource Include="resource\**\*" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" />
</ItemGroup>
</Project>