-
Notifications
You must be signed in to change notification settings - Fork 588
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes for Assembly info updating #1959
Conversation
This should output the static value as this is quote escaped when required
…attributes This means the correct namespaces are available rather than the default blank
Can you briefly explain what the issue was or what this change does? Can we test it? |
Assembly info with string values are not in quotes when you write them out. |
Also, when you get attributes, they don't have the namespaces as they are all empty |
So with your change "Attribute.Name" is no longer quoted or what is the difference to I think I'm slowly getting parts of what the problem was, sorry ;) |
Sorry, I don't think I'm explaining well 😞 The value of all attributes in the "name" is not quoted. |
The second change relates to how the assembly info is read. |
But I also think your right, this module should have some tests over it, so I'll add some tomorrow 👍🏼 |
The only way I can see a double quote occuring is if someone was creating an attribute with a quoted value in the string. |
Thanks for the explanation. In particular we probably should also fix: Maybe we should indeed make "Name" unquoted and the other one quoted. Seems a bit strange currently. Thanks for taking care of this. Sorry was a bit slow there but the code is a bit strange :) |
Ah now I get it. It doesn't quote twice but it first quotes the staticValue and later the value. Wow |
Oh wow...that's messed up. - more than I actually thought! |
@matthid this should now be complete with tests for cs, fs and vb assembly info files |
i also fixed the launch and task json files to run nicely in vscode |
Fake.sln
Outdated
# Visual Studio 15 | ||
VisualStudioVersion = 15.0.27130.2026 | ||
MinimumVisualStudioVersion = 15.0.26124.0 | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "app", "app", "{7BFFAE76-DEE9-417A-A79B-6A6644C4553A}" | ||
EndProject | ||
Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Fake.Core.Context", "src/app/Fake.Core.Context/Fake.Core.Context.fsproj", "{D3D92ED7-C2B9-46D5-B611-A2CF0C30C8DB}" | ||
Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Fake.Core.Context", "src\app\Fake.Core.Context\Fake.Core.Context.fsproj", "{D3D92ED7-C2B9-46D5-B611-A2CF0C30C8DB}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you revert that and make sure to use /?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Drat, didn't mean to include that...stupid windows.
|
||
let StringAttribute(name, value, inNamespace) = | ||
let quotedValue = quote value | ||
StringAttributeEx(name, value, inNamespace, name, quotedValue) | ||
Attribute(name, quote quotedValue, inNamespace, name, typeof<string>.FullName, quotedValue) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
quote quotedValue
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo, will fix (because of quote, it's ok since it will never double quote, but best to fix it)
@@ -19,7 +17,7 @@ let tests = | |||
myC | |||
try | |||
Fake.Core.Context.forceFakeContext() |> ignore | |||
Assert.Fail "Expected exception" | |||
Tests.failtest "Expected exception" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah there it is, never found this API myself :/
@matthid all updated. |
phew it builds! |
Thanks for taking care of this :) |
@matthid your more than welcome. Hope to be able to contribute more here and in paket 👍🏼 |
No description provided.