Set the properties on your Visual Studio project
Reminder to self:
Settings properties on a Visual Studio project,like DefaultNamespace and AssemblyName.
In NuGet console window:
(Get-Project).Properties.Item("DefaultNamespace").Value = "HelloWorld"
Available properties on a simple class library project project:
PM> (Get-Project).Properties | Select-Object -Property Name,Value
Name Value
----
-----TargetFrameworkMoniker
.NETFramework,Version=v4.0
ComVisible
False
EnableSecurityDebugging
True
OptionCompare
0
StartupObject
ManifestCertificateThumbprint
Trademark
Title
FactoryExtensionsTemplate
AssemblyOriginatorKeyFileType
1
FileName
FactoryExtensions3.csproj
WebServer
AssemblyOriginatorKeyMode
0
AssemblyKeyContainerName
ProjectType
0
ReferencePath
PreBuildEvent
Copyright Copyright © Microsoft
2011
ApplicationIcon
ExcludedPermissions
RunPostBuildEvent
1
DefaultTargetSchema
1
RootNamespace
HelloWorld
ManifestTimestampUrl
ManifestKeyFile
DebugSecurityZoneURL
Product
FactoryExtensionsTemplate
PostBuildEvent
OptionStrict
0
DefaultHTMLPageLayout
1
DelaySign
False
OutputType
2
NeutralResourcesLanguage
OptionExplicit
1
OutputFileName
FactoryExtensions.dll
ServerExtensionsVersion
AssemblyGuid
919e5f68-ec7d-4508-aa24-ee3da14edd84
GenerateManifests
False
AssemblyVersion
1.0.0.0
Win32ResourceFile
Description
URL
file:///d:\temp3\Acme.Portal\FactoryExtensions3\
DefaultClientScript
0
TargetFramework
262144
SignManifests
False
OfflineURL
WebServerVersion
Publish
System.__ComObject
AssemblyType
0
FullPath
d:\temp3\Acme.Portal\FactoryExtensions3\
WebAccessMethod
AssemblyKeyProviderName
TypeComplianceDiagnostics
False
Company
Microsoft
ActiveFileSharePath
AssemblyOriginatorKeyFile
ApplicationManifest
DefaultManifest
AssemblyFileVersion
1.0.0.0
AspnetVersion
FileSharePath
AssemblyName
FactoryExtensions
LocalPath
d:\temp3\Acme.Portal\FactoryExtensions3\
DefaultNamespace
HelloWorld
LinkRepair
False
TargetZone
SignAssembly
False