Skip to content
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

Build out the new dotnet-assembly-info command line tool #11

Closed
1 of 5 tasks
jeremydmiller opened this issue Aug 12, 2016 · 1 comment
Closed
1 of 5 tasks

Build out the new dotnet-assembly-info command line tool #11

jeremydmiller opened this issue Aug 12, 2016 · 1 comment

Comments

@jeremydmiller
Copy link
Member

jeremydmiller commented Aug 12, 2016

Be a decent sample app, and it's something we want anyway.

Nice if you could:

  • Poke in a description
  • Read the git commit sha (reverse engineer from old FubuRake code)
  • Push in version pattern and build number
  • Flag to have it look up the version from the project.json file
  • Flag to write a version to the project.json file? See what Corey did in Marten

Here's what we write out as the CommonAssemblyInfo.cs file in fubumvc:

puts "Writing src/CommonAssemblyInfo.cs..."
File.open('src/CommonAssemblyInfo.cs', 'w') do |file|
file.write "using System.Reflection;\n"
file.write "using System.Runtime.InteropServices;\n"
file.write "[assembly: AssemblyDescription("#{options[:description]}")]\n"
file.write "[assembly: AssemblyProduct("#{options[:product_name]}")]\n"
file.write "[assembly: AssemblyCopyright("#{options[:copyright]}")]\n"
file.write "[assembly: AssemblyTrademark("#{options[:trademark]}")]\n"
file.write "[assembly: AssemblyVersion("#{options[:version]}")]\n"
file.write "[assembly: AssemblyFileVersion("#{options[:file_version]}")]\n"
file.write "[assembly: AssemblyInformationalVersion("#{options[:informational_version]}")]\n"
end

end

@jeremydmiller
Copy link
Member Author

Not investing any time in project.json manipulation right now. We'll come back to this when whatever the MSBuild replacement is is around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant