@@ -122,6 +122,8 @@ type [<Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:Iden
122122 let mutable defineConstants : ITaskItem [] = [||]
123123 let mutable disabledWarnings : string = null
124124 let mutable documentationFile : string = null
125+ let mutable embedAllSources = false
126+ let mutable embed : string = null
125127 let mutable generateInterfaceFile : string = null
126128 let mutable keyFile : string = null
127129 let mutable noFramework = false
@@ -136,6 +138,7 @@ type [<Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:Iden
136138 let mutable referencePath : string = null
137139 let mutable resources : ITaskItem [] = [||]
138140 let mutable sources : ITaskItem [] = [||]
141+ let mutable sourceLink : string = null
139142 let mutable targetType : string = null
140143#if FX_ ATLEAST_ 35
141144#else
@@ -183,6 +186,10 @@ type [<Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:Iden
183186 | " EMBEDDED" -> " embedded"
184187 | " FULL" -> " full"
185188 | _ -> null )
189+ if embedAllSources then
190+ builder.AppendSwitch( " --embed+" )
191+ builder.AppendSwitchIfNotNull( " --embed:" , embed)
192+ builder.AppendSwitchIfNotNull( " --sourcelink:" , sourceLink)
186193 // NoFramework
187194 if noFramework then
188195 builder.AppendSwitch( " --noframework" )
@@ -316,7 +323,7 @@ type [<Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:Iden
316323 member fsc.DebugSymbols
317324 with get() = debugSymbols
318325 and set ( b ) = debugSymbols <- b
319- // --debug <none/portable/pdbonly/full>: Emit debugging information
326+ // --debug <none/portable/embedded/ pdbonly/full>: Emit debugging information
320327 member fsc.DebugType
321328 with get() = debugType
322329 and set ( s ) = debugType <- s
@@ -332,6 +339,12 @@ type [<Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:Iden
332339 member fsc.DocumentationFile
333340 with get() = documentationFile
334341 and set ( s ) = documentationFile <- s
342+ member fsc.EmbedAllSources
343+ with get() = embedAllSources
344+ and set ( s ) = embedAllSources <- s
345+ member fsc.Embed
346+ with get() = embed
347+ and set ( e ) = embed <- e
335348 // --generate-interface-file <string>:
336349 // Print the inferred interface of the
337350 // assembly to a file.
@@ -398,6 +411,10 @@ type [<Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:Iden
398411 member fsc.Resources
399412 with get() = resources
400413 and set ( a ) = resources <- a
414+ // SourceLink
415+ member fsc.SourceLink
416+ with get() = sourceLink
417+ and set ( s ) = sourceLink <- s
401418 // source files
402419 member fsc.Sources
403420 with get() = sources
0 commit comments