Skip to content

Commit

Permalink
Merge pull request #827 from amazingant/fix-assemblyinfo-vb
Browse files Browse the repository at this point in the history
Re-added internal class generated for AssemblyInfo.vb
  • Loading branch information
forki committed Jun 10, 2015
2 parents 32c23b5 + 6a03c98 commit 3ce3263
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/app/FakeLib/AssemblyInfoFile.fs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,14 @@ let CreateVisualBasicAssemblyInfoWithConfig outputFileName attributes (config :
|> Seq.toList
|> List.map (fun (attr : Attribute) -> sprintf "<assembly: %sAttribute(%s)>" attr.Name attr.Value))

attributeLines
let sourceLines =
if generateClass then
[ "Friend NotInheritable Class AssemblyVersionInformation"
sprintf " Friend Const Version As String = %s" (getAssemblyVersionInfo attributes)
"End Class" ]
else []

attributeLines @ sourceLines
|> writeToFile outputFileName
traceEndTask "AssemblyInfo" outputFileName

Expand Down

0 comments on commit 3ce3263

Please sign in to comment.