Skip to content

Commit 6008b49

Browse files
devlooped-botkzu
authored andcommitted
⬆️ Bump files with dotnet-file sync
# devlooped/oss - Ignore test analyzer rules recursively. devlooped/oss@fd5b554 - When using EnableRexCodeGenerator, this should Just Work devlooped/oss@c7235d7 - Enable VSCode/Razor compat when using resxcode generator devlooped/oss@1514d15 - Ignore primary ctor parameter in tests, usually used for testoutput helper devlooped/oss@c779d3d - Ignore app root folder too devlooped/oss@b87a8a7
1 parent 10a3c90 commit 6008b49

File tree

4 files changed

+26
-8
lines changed

4 files changed

+26
-8
lines changed

.editorconfig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,13 @@ csharp_new_line_before_members_in_object_initializers = true
9595
csharp_new_line_before_members_in_anonymous_types = true
9696

9797
# Test settings
98-
[**/*Tests*/*{.cs,.vb}]
98+
[**/*Tests*/**{.cs,.vb}]
9999
# xUnit1013: Public method should be marked as test. Allows using records as test classes
100100
dotnet_diagnostic.xUnit1013.severity = none
101101

102+
# CS9113: Parameter is unread (usually, ITestOutputHelper)
103+
dotnet_diagnostic.CS9113.severity = none
104+
102105
# Default severity for analyzer diagnostics with category 'Style'
103106
dotnet_analyzer_diagnostic.category-Style.severity = none
104107

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
bin
2+
app
23
obj
34
artifacts
45
pack

.netconfig

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
skip
3030
[file ".editorconfig"]
3131
url = https://github.com/devlooped/oss/blob/main/.editorconfig
32-
sha = 29818360755cdb9ba5527013a2ecc9670c437e44
33-
etag = f0b411ee5aa5ddb4449d98ad73fe11c921589b8d26e4f4527d58e26d39f03958
32+
sha = c779d3d4e468358106dea03e93ba2cd35bb01ecb
33+
etag = 7298c6450967975a8782b5c74f3071e1910fc59686e48f9c9d5cd7c68213cf59
3434
weak
3535
[file ".gitattributes"]
3636
url = https://github.com/devlooped/oss/blob/main/.gitattributes
@@ -60,8 +60,8 @@
6060
skip
6161
[file ".gitignore"]
6262
url = https://github.com/devlooped/oss/blob/main/.gitignore
63-
sha = 9dff0bde290185226986f512c75fa0434bc9fe3f
64-
etag = 7b3f23aa88e3ed628f03677a5b0fc4587c404bd0ef97dcf9650917a48316d51c
63+
sha = b87a8a795a4c2b6830602225c066c11108552a99
64+
etag = 96e0860052044780f1fc9e3bdfbee09d82d5dddb8b1217d67460fc7330a64dd8
6565
weak
6666
[file "Directory.Build.rsp"]
6767
url = https://github.com/devlooped/oss/blob/main/Directory.Build.rsp
@@ -85,8 +85,8 @@
8585
weak
8686
[file "src/Directory.Build.targets"]
8787
url = https://github.com/devlooped/oss/blob/main/src/Directory.Build.targets
88-
sha = 6ae80a175a8f926ac5d9ffb0f6afd55d85cc9320
89-
etag = a890e3c9574327c4885f386756cba483c0f8fb2446554e4badcb6ab5b0eecfd0
88+
sha = 1514d15399a7d545ad92a0e9d57dc8295fdd6af8
89+
etag = 428f80b0786ff17b836c7a5b0640948724855d17933e958642b22849ac00dadb
9090
weak
9191
[file "src/kzu.snk"]
9292
url = https://github.com/devlooped/oss/blob/main/src/kzu.snk

src/Directory.Build.targets

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,25 @@
9494
<RepositoryBranch Condition="'$(RepositoryBranch)' == '' and '$(BUDDY_EXECUTION_BRANCH)' != ''">$(BUDDY_EXECUTION_BRANCH)</RepositoryBranch>
9595
</PropertyGroup>
9696

97+
<PropertyGroup Condition="'$(EnableRexCodeGenerator)' == 'true'">
98+
<!-- VSCode/Razor compatibility -->
99+
<CoreCompileDependsOn>PrepareResources;$(CoreCompileDependsOn)</CoreCompileDependsOn>
100+
</PropertyGroup>
101+
97102
<ItemGroup>
98103
<!-- Consider the project out of date if any of these files changes -->
99104
<UpToDateCheck Include="@(None);@(Content);@(EmbeddedResource)" />
100105
<!-- We'll typically use ThisAssembly.Strings instead of the built-in resource manager codegen -->
101106
<EmbeddedResource Update="@(EmbeddedResource)" Generator="" Condition="'$(EnableRexCodeGenerator)' != 'true'" />
107+
<EmbeddedResource Update="@(EmbeddedResource)" Condition="'$(EnableRexCodeGenerator)' == 'true'">
108+
<!-- Default to Just Works resources generation. See https://www.cazzulino.com/resources.html -->
109+
<Generator>MSBuild:Compile</Generator>
110+
<StronglyTypedFileName>$(IntermediateOutputPath)\$([MSBuild]::ValueOrDefault('%(RelativeDir)', '').Replace('\', '.').Replace('/', '.'))%(Filename).g$(DefaultLanguageSourceExtension)</StronglyTypedFileName>
111+
<StronglyTypedLanguage>$(Language)</StronglyTypedLanguage>
112+
<StronglyTypedNamespace Condition="'%(RelativeDir)' == ''">$(RootNamespace)</StronglyTypedNamespace>
113+
<StronglyTypedNamespace Condition="'%(RelativeDir)' != ''">$(RootNamespace).$([MSBuild]::ValueOrDefault('%(RelativeDir)', '').Replace('\', '.').Replace('/', '.').TrimEnd('.'))</StronglyTypedNamespace>
114+
<StronglyTypedClassName>%(Filename)</StronglyTypedClassName>
115+
</EmbeddedResource>
102116
</ItemGroup>
103117

104118
<Target Name="IsPackable" Returns="@(IsPackable)">
@@ -161,4 +175,4 @@
161175
<Import Project="Directory.targets" Condition="Exists('Directory.targets')"/>
162176
<Import Project="Directory.targets.user" Condition="Exists('Directory.targets.user')" />
163177

164-
</Project>
178+
</Project>

0 commit comments

Comments
 (0)